Ring Documentation Release 0.9.0

Total Page:16

File Type:pdf, Size:1020Kb

Ring Documentation Release 0.9.0 Ring Documentation Release 0.9.0 Jeong YunWon Jul 31, 2021 Guidelines: 1 Quickstart 3 2 Why Ring? 5 3 Documents 7 3.1 Quickstart................................................7 3.2 Why Ring?................................................ 12 3.3 Factory functions............................................. 17 3.4 Attributes of Ring object......................................... 20 3.5 Save and load rich data.......................................... 24 3.6 Extend Ring to meet your own needs.................................. 26 3.7 The future of Ring............................................ 27 3.8 Contribution............................................... 28 3.9 ring ................................................... 29 4 Indices and tables 49 Python Module Index 51 Index 53 i ii Ring Documentation, Release 0.9.0 Ring provides function-oriented cache interface for various backends. Repository: https://github.com/youknowone/ring/ Guidelines: 1 Ring Documentation, Release 0.9.0 2 Guidelines: CHAPTER 1 Quickstart See Quickstart to learn the basic concept of Ring with examples. Using it in your code can be done in a single minute. 3 Ring Documentation, Release 0.9.0 4 Chapter 1. Quickstart CHAPTER 2 Why Ring? Caching is a popular concept widely spread on the broad range of computer science but its interface is not well developed yet. In these days, we still experience common inconvenience. Ring is one of the solutions for humans. Its approach is close integration with the programming language. See Why Ring? for details. 5 Ring Documentation, Release 0.9.0 6 Chapter 2. Why Ring? CHAPTER 3 Documents 3.1 Quickstart To start, remember the philosophy of Ring is a human-friendly high-level interface with transparent and concrete low-level access. You probably be able to access most of the levels of Ring you want. 3.1.1 Installation PyPI is the recommended way. $ pip install ring To browse versions and tarballs, visit: https://pypi.python.org/pypi/ring/ Though Ring includes support for many backends, their packages are not included in ring installation due to the following issues: 1. Ring supports many backends but users don’t use all of them. 2. Backends packages not only cost storages and time but also require some non-Python packages to be installed, which cannot be automated by pip. 3. Installing some of them is not easy on some platforms. Check each backend you use and manually add related packages to setup.py or requirements.txt. If you are new to Ring and cache, let’s start with ring.lru(). It doesn’t require any dependency. Changing lru to another backend is simple for later. Note: If you are new to LRU cache, check https://en.wikipedia.org/wiki/Cache_replacement_policies#Least_ recently_used_(LRU) for details. 7 Ring Documentation, Release 0.9.0 3.1.2 First example Let’s start with a simple example: function cache with bytes data. import ring import requests # save in a new lru storage @ring.lru() def get_url(url): return requests.get(url).content # default access - it is cached data= get_url('http://example.com') This flow is what you see in common smart cache decorators. Actually, this is very similar to functools. lru_cache() in Python standard library. The differences start here. The core feature of Ring is explicit controllers. # delete the cache get_url.delete('http://example.com') # get cached data or None data_or_none= get_url.get('http://example.com') # get internal cache key key= get_url.key('http://example.com') # and access directly to the backend encoded_data= get_url.storage.backend.get(key) cached_data= get_url.decode(encoded_data) Ring will have full control for any layer of caching. Which doesn’t exist in functools.lru_cache() see Attributes of Ring object for sub-functions details. see Why Ring? if this document doesn’t explain what Ring does. 3.1.3 method, classmethod, staticmethod, property Ring is adaptable for any kind of methods for Python class. import ring import requests class Page(object): base_content='<html></html>' def __init__(self, url): self.url= url def __ring_key__(self): return 'page='+ self.url @ring.lru() def content(self): return requests.get(self.url).content (continues on next page) 8 Chapter 3. Documents Ring Documentation, Release 0.9.0 (continued from previous page) @ring.lru() @classmethod def class_content(cls): return cls.base_content @ring.lru() @staticmethod def example_dot_com(): return requests.get('http://example.com').content @ring.lru() @property def url_property(self): return self.url_property Page.example_dot_com() # as expected assert Page.example_dot_com.key().endswith('Page.example_dot_com') # key with ,!function-name Page.class_content() # as expected # key with function-name + class name assert Page.class_content.key().endswith('Page.class_content:Page') p= Page('http://example.com') p.content() # as expected # key with class name + function name + __ring_key__ assert p.content.key().endswith('Page.content:page=http://example.com') assert p.url_property ==p.url see Factory functions for details. 3.1.4 Choosing backend Let’s consider using external cache storage instead of lru. Ring includes common cache storage supports. Memcached is one of the popular cache storage. Memcached is not a Python Project. You must install and run it to let your python code connects there. Fortunately, because Memcached is very popular, it is well-packaged on most of the platforms. Check how to install it on your platform. note For example, apt install memcached for Debian/Ubuntu. yum install memcached for CentOS/RHEL. brew install memcache for macOS with Homebrew. Once you installed it, do not forget to start it. In Ring, you can choose any compatible Memcached package. If you are new to Memcached, let’s try pymemcache to install it easily. $ pip install pymemcache Now you are ready to edit the get_url to use Memcached. import ring import requests (continues on next page) 3.1. Quickstart 9 Ring Documentation, Release 0.9.0 (continued from previous page) import pymemcache.client #1 import pymemcache client= pymemcache.client.Client(('127.0.0.1', 11211)) #2 create a client # save to memcache client, expire in 60 seconds. @ring.memcache(client, expire=60) #3 lru -> memcache def get_url(url): return requests.get(url).content # default access - it is cached data= get_url('http://example.com') Try and compare what’s changed from ring.lru() version. There are many more included factories for various backends. see Factory functions about more factories and backends. see Extend Ring to meet your own needs to create your own factory. asyncio support Ring supports asyncio with a few factories which also are included. They follow similar convention but requiring await for IO jobs. import ring @ring.lru(force_asyncio=True) # non-asyncio backends require `force_asyncio` async def f(): ... result= await f() # using `await` for __call__ cached_result= await f.get() # using `await` for get() key=f.key() # NOT using `await` for key() note Non-IO sub-functions doesn’t require await. note the sync version factories are not compatible with asyncio. see Factory functions and search for asyncio to find fit factories. 3.1.5 Structured or complex data The modern software handles structured data rather than chunks of bytes. Because the popular cache storages only support raw bytes or string, data needs to be encoded and decoded. The coder parameter in Ring factories decides the kind of coding. import ring import json import pymemcache.client client= pymemcache.client.Client(('127.0.0.1', 11211)) @ring.memcache(client, expire=60, coder='json') def f(): return {'key':'data','number': 42} (continues on next page) 10 Chapter 3. Documents Ring Documentation, Release 0.9.0 (continued from previous page) f() # create cache data loaded=f.get() assert isinstance(loaded, dict) assert loaded =={'key':'data','number': 42} raw_data=f.storage.backend.get(f.key()) assert isinstance(raw_data, bytes) # `str` for py2 assert raw_data == json.dumps({'key':'data','number': 42}).encode('utf-8') see Save and load rich data about more backends. see Extend Ring to meet your own needs to create and register your own coders. 3.1.6 Factory parameters Ring factories share common parameters to control Ring objects’ behavior. • key_prefix • coder • ignorable_keys • user_inferface • storage_interface see Factory functions for details. 3.1.7 Low-level access Do you wonder how your data is encoded? Which keys are mapped to the functions? You don’t need to be suffered by looking inside of Ring. At this time, let’s use ring.dict() to look into the storage. import ring dict_storage={} @ring.dict(dict_storage) def f(): ... key=f.key() # retrieving the key raw_data=f.storage.backend.get(key) # getting raw data from storage # look into `dict_storage` by yourself to check how it works. see Attributes of Ring object for more attributes. 3.1.8 Bulk access Bulk access API is optionally supported. 3.1. Quickstart 11 Ring Documentation, Release 0.9.0 @ring.memcache(...) def f(a, b): ... # getting data for f(1, 2), f(1, 3), f(a=2, b=2) data=f.get_many((1,2), (1,3), {'a':2,'b':2}) see Attributes of Ring object for more attributes. 3.1.9 Further documents see Why Ring? see Attributes of Ring object see ring — the full reference of Ring 3.2 Why Ring? Caching is a popular concept widely spread on the broad range of computer science. But cache interface is not well-developed yet. Ring is one of the solutions for humans. Its approach is close integration with a programming language. 3.2.1 Common problems of cache note Skip this section if you are familiar with cache and decorator patterns for cache in Python world. The straightforward approach to storage Traditionally we considered cache as a storage. In that sense, calling useful actual_function() with an argument for the cached result of cached_function() looks like next series of works: # psuedo code for rough flow key= create_key() if storage.has(key): result= storage.get(key) else: result= cached_function() storage.set(key, result) actual_function(result) What’s the problem? We are interested in cached_function() and actual_function() instead of storage.
Recommended publications
  • Redis and Memcached
    Redis and Memcached Speaker: Vladimir Zivkovic, Manager, IT June, 2019 Problem Scenario • Web Site users wanting to access data extremely quickly (< 200ms) • Data being shared between different layers of the stack • Cache a web page sessions • Research and test feasibility of using Redis as a solution for storing and retrieving data quickly • Load data into Redis to test ETL feasibility and Performance • Goal - get sub-second response for API calls for retrieving data !2 Why Redis • In-memory key-value store, with persistence • Open source • Written in C • It can handle up to 2^32 keys, and was tested in practice to handle at least 250 million of keys per instance.” - http://redis.io/topics/faq • Most popular key-value store - http://db-engines.com/en/ranking !3 History • REmote DIctionary Server • Released in 2009 • Built in order to scale a website: http://lloogg.com/ • The web application of lloogg was an ajax app to show the site traffic in real time. Needed a DB handling fast writes, and fast ”get latest N items” operation. !4 Redis Data types • Strings • Bitmaps • Lists • Hyperlogs • Sets • Geospatial Indexes • Sorted Sets • Hashes !5 Redis protocol • redis[“key”] = “value” • Values can be strings, lists or sets • Push and pop elements (atomic) • Fetch arbitrary set and array elements • Sorting • Data is written to disk asynchronously !6 Memory Footprint • An empty instance uses ~ 3MB of memory. • For 1 Million small Keys => String Value pairs use ~ 85MB of memory. • 1 Million Keys => Hash value, representing an object with 5 fields,
    [Show full text]
  • Redis - a Flexible Key/Value Datastore an Introduction
    Redis - a Flexible Key/Value Datastore An Introduction Alexandre Dulaunoy AIMS 2011 MapReduce and Network Forensic • MapReduce is an old concept in computer science ◦ The map stage to perform isolated computation on independent problems ◦ The reduce stage to combine the computation results • Network forensic computations can easily be expressed in map and reduce steps: ◦ parsing, filtering, counting, sorting, aggregating, anonymizing, shuffling... 2 of 16 Concurrent Network Forensic Processing • To allow concurrent processing, a non-blocking data store is required • To allow flexibility, a schema-free data store is required • To allow fast processing, you need to scale horizontally and to know the cost of querying the data store • To allow streaming processing, write/cost versus read/cost should be equivalent 3 of 16 Redis: a key-value/tuple store • Redis is key store written in C with an extended set of data types like lists, sets, ranked sets, hashes, queues • Redis is usually in memory with persistence achieved by regularly saving on disk • Redis API is simple (telnet-like) and supported by a multitude of programming languages • http://www.redis.io/ 4 of 16 Redis: installation • Download Redis 2.2.9 (stable version) • tar xvfz redis-2.2.9.tar.gz • cd redis-2.2.9 • make 5 of 16 Keys • Keys are free text values (up to 231 bytes) - newline not allowed • Short keys are usually better (to save memory) • Naming convention are used like keys separated by colon 6 of 16 Value and data types • binary-safe strings • lists of binary-safe strings • sets of binary-safe strings • hashes (dictionary-like) • pubsub channels 7 of 16 Running redis and talking to redis..
    [Show full text]
  • Performance at Scale with Amazon Elasticache
    Performance at Scale with Amazon ElastiCache July 2019 Notices Customers are responsible for making their own independent assessment of the information in this document. This document: (a) is for informational purposes only, (b) represents current AWS product offerings and practices, which are subject to change without notice, and (c) does not create any commitments or assurances from AWS and its affiliates, suppliers or licensors. AWS products or services are provided “as is” without warranties, representations, or conditions of any kind, whether express or implied. The responsibilities and liabilities of AWS to its customers are controlled by AWS agreements, and this document is not part of, nor does it modify, any agreement between AWS and its customers. © 2019 Amazon Web Services, Inc. or its affiliates. All rights reserved. Contents Introduction .......................................................................................................................... 1 ElastiCache Overview ......................................................................................................... 2 Alternatives to ElastiCache ................................................................................................. 2 Memcached vs. Redis ......................................................................................................... 3 ElastiCache for Memcached ............................................................................................... 5 Architecture with ElastiCache for Memcached ...............................................................
    [Show full text]
  • Scaling Uber with Node.Js Amos Barreto @Amos Barreto
    Scaling Uber with Node.js Amos Barreto @amos_barreto Uber is everyone’s Private driver. REQUEST! RIDE! RATE! Tap to select location Sit back and relax, tell your Help us maintain a quality service" driver your destination by rating your experience YOUR DRIVERS 4 Your Drivers UBER QUALIFIED RIDER RATED LICENSED & INSURED Uber only partners with drivers Tell us what you think. Your From insurance to background who have a keen eye for feedback helps us work with checks, every driver meets or customer service and a drivers to constantly improve beats local regulations. passion for the trade. the Uber experience. 19 LOGISTICS 4 #OMGUBERICECREAM 22 UberChopper #OMGUBERCHOPPER 22 #UBERVALENTINES 22 #ICANHASUBERKITTENS 22 Trip State Machine (Simplified) Request Dispatch Accept Arrive End Begin 6 Trip State Machine (Extended) Expire / Request Dispatch (1) Reject Dispatch (2) Accept Arrive End Begin 6 OUR STORY 4 Version 1 • PHP dispatch PHP • Outsourced to remote contractors in Midwest • Half the code in spanish Cron • Flat file " • Lifetime: 6-9 months 6 33 “I read an article on HackerNews about a new framework called Node.js” """"Jason Roberts" Tradeoffs • Learning curve • Database drivers " " • Scalability • Documentation" " " • Performance • Monitoring" " " • Library ecosystem • Production operations" Version 2 • Lifetime: 9 months " Node.js • Developed in house " • Node.js application • Prototyped on 0.2 • Launched in production with 0.4 " • MongoDB datastore “I really don’t see dispatch changing much in the next three years” 33 Expect the
    [Show full text]
  • Redis-Lua Documentation Release 2.0.8
    redis-lua Documentation Release 2.0.8 Julien Kauffmann October 12, 2016 Contents 1 Quick start 3 1.1 Step-by-step analysis...........................................3 2 What’s the magic at play here ?5 3 One step further 7 4 What happens when I make a mistake ?9 5 What’s next ? 11 6 Table of contents 13 6.1 Basic usage................................................ 13 6.2 Advanced usage............................................. 14 6.3 API.................................................... 16 7 Indices and tables 19 i ii redis-lua Documentation, Release 2.0.8 redis-lua is a pure-Python library that eases usage of LUA scripts with Redis. It provides script loading and parsing abilities as well as testing primitives. Contents 1 redis-lua Documentation, Release 2.0.8 2 Contents CHAPTER 1 Quick start A code sample is worth a thousand words: from redis_lua import load_script # Loads the 'create_foo.lua' in the 'lua' directory. script= load_script(name='create_foo', path='lua/') # Run the script with the specified arguments. foo= script.get_runner(client=redis_client)( members={'john','susan','bob'}, size=5, ) 1.1 Step-by-step analysis Let’s go through the code sample step by step. First we have: from redis_lua import load_script We import the only function we need. Nothing too specific here. The next lines are: # Loads the 'create_foo.lua' in the 'lua' directory. script= load_script(name='create_foo', path='lua/') These lines looks for a file named create_foo.lua in the lua directory, relative to the current working directory. This example actually considers that using the current directory is correct. In a production code, you likely want to make sure to use a more reliable or absolute path.
    [Show full text]
  • Redis in Action
    IN ACTION Josiah L. Carlson FOREWORD BY Salvatore Sanfilippo MANNING Redis in Action Redis in Action JOSIAH L. CARLSON MANNING Shelter Island For online information and ordering of this and other Manning books, please visit www.manning.com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact Special Sales Department Manning Publications Co. 20 Baldwin Road PO Box 261 Shelter Island, NY 11964 Email: [email protected] ©2013 by Manning Publications Co. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps. Recognizing the importance of preserving what has been written, it is Manning’s policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15 percent recycled and processed without the use of elemental chlorine. Manning Publications Co. Development editor: Elizabeth Lexleigh 20 Baldwin Road Technical proofreaders: James Philips, Kevin Chang, PO Box 261 and Nicholas Lindgren Shelter Island, NY 11964 Java translator: Eric Van Dewoestine Copyeditor: Benjamin Berg Proofreader: Katie Tennant Typesetter: Gordan Salinovic Cover designer: Marija Tudor ISBN 9781935182054 Printed in the United States of America 1 2 3 4 5 6 7 8 9 10 – MAL – 18 17 16 15 14 13 To my dear wife, See Luan, and to our baby girl, Mikela brief contents PART 1 GETTING STARTED .
    [Show full text]
  • VSI's Open Source Strategy
    VSI's Open Source Strategy Plans and schemes for Open Source so9ware on OpenVMS Bre% Cameron / Camiel Vanderhoeven April 2016 AGENDA • Programming languages • Cloud • Integraon technologies • UNIX compability • Databases • Analy;cs • Web • Add-ons • Libraries/u;li;es • Other consideraons • SoDware development • Summary/conclusions tools • Quesons Programming languages • Scrip;ng languages – Lua – Perl (probably in reasonable shape) – Tcl – Python – Ruby – PHP – JavaScript (Node.js and friends) – Also need to consider tools and packages commonly used with these languages • Interpreted languages – Scala (JVM) – Clojure (JVM) – Erlang (poten;ally a good fit with OpenVMS; can get good support from ESL) – All the above are seeing increased adop;on 3 Programming languages • Compiled languages – Go (seeing rapid adop;on) – Rust (relavely new) – Apple Swi • Prerequisites (not all are required in all cases) – LLVM backend – Tweaks to OpenVMS C and C++ compilers – Support for latest language standards (C++) – Support for some GNU C/C++ extensions – Updates to OpenVMS C RTL and threads library 4 Programming languages 1. JavaScript 2. Java 3. PHP 4. Python 5. C# 6. C++ 7. Ruby 8. CSS 9. C 10. Objective-C 11. Perl 12. Shell 13. R 14. Scala 15. Go 16. Haskell 17. Matlab 18. Swift 19. Clojure 20. Groovy 21. Visual Basic 5 See h%p://redmonk.com/sogrady/2015/07/01/language-rankings-6-15/ Programming languages Growing programming languages, June 2015 Steve O’Grady published another edi;on of his great popularity study on programming languages: RedMonk Programming Language Rankings: June 2015. As usual, it is a very valuable piece. There are many take-away from this research.
    [Show full text]
  • Using Redis As a Cache Backend in Magento
    Using Redis as a Cache Backend in Magento Written by: Alexey Samorukov Aleksandr Lozhechnik Kirill Morozov Table of Contents PROBLEMS WITH THE TWOLEVELS CACHE BACKEND 3 CONFIRMING THE ISSUE 5 SOLVING THE ISSUE USING THE REDIS CACHE BACKEND 7 TESTING AND BENCHMARKING THE SOLUTION 9 More Research into the TwoLevels Backend Issue 10 Magento Enterprise 1.13 and Memcached 11 Magento Enterprise Edition 1.13 with Redis and the PHP Redis Extension 11 Potential Issues with Redis as a Cache Backend 12 IMPLEMENTING AND TESTING REDIS IN A PRODUCTION ENVIRONMENT 13 Product Test Configurations 14 Redis Configuration 14 Magento Configuration 15 Production Test Results 15 Production Test Issue: Continuously Growing Cache Size 15 Root Cause and Conclusion 15 Work-around 16 Tag Clean-up Procedure and Script 16 CHANGES IN MAGENTO ENTERPRISE EDITION 1.13 AND COMMUNITY EDITION 1.8 18 ADDITIONAL LINKS 20 3 Problems with the TwoLevels Cache Backend Problems with the TwoLevels Cache Backend 4 Problems with the TwoLevels Cache Backend The most common cache storage recommendation for Magento users running multiple web nodes is to implement the TwoLevels backend – that is, to use Memcache together with the database. However, this configuration often causes the following issues: 1. First, the core_cache_tag table constantly grows. On average, each web site has about 5 million records. If a system has multiple web sites and web stores with large catalogs, it can easily grow to 15 million records in less than a day. Insertion into core_cache_tag leads to issues with the MySQL server, including performance degradation. In this context, a tag is an identifier that classifies different types of Magento cache objects.
    [Show full text]
  • 007 28862Ny080715 42
    New York Science Journal 2015;8(7) http://www.sciencepub.net/newyork A Comparison of API of Key-Value and Document-Based Data-Stores with Python Programming Ehsan Azizi Khadem1, Emad Fereshteh Nezhad2 1. MSc of Computer Engineering, Department of Computer Engineering, Lorestan University, Iran 2. MSc of Computer Engineering, Communications Regulatory Authority of I.R of Iran Abstract: Today, NoSql data-stores are widely used in databases. NoSql, is based on NoRel (Not Only Relational) concept in database designing. Relational databases are most important technology for storing data during 50 years. But nowadays, because of the explosive growth of data and generating complex type of it like Web2, RDBMS are not suitable and enough for data storing. NoSql has different data model and API to access the data, comparing relational method. NoSql data-stores can be classified into four categories: key-value, document-based, extensible record or column-based and graph-based. Many researches are analyzed and compared data models of these categories but there are few researches on API of them. In this paper, we implement python API to compare performance of key-value and document-based stores and then analyze the results. [Ehsan Azizi Khadem, Emad Fereshteh Nezhad. A Comparison of API of Key-Value and Document-Based Data-Stores with Python Programming. N Y Sci J 2015;8(7):42-48]. (ISSN: 1554-0200). http://www.sciencepub.net/newyork. 7 Keywords: NoSql, DataBase, Python, Key-value, Document-based 1. Introduction - Document-Based: In this model, data stored Databases re very important part of any in document format.
    [Show full text]
  • Technical Update & Roadmap
    18/05/2018 VMS Software Inc. (VSI) Technical Update & Roadmap May 2018 Brett Cameron Agenda ▸ What we've done to date ▸ Product roadmap ▸ TCP/IP update ▸ Upcoming new products ▸ Support roadmap ▸ Storage ▸ x86 update, roadmap, and licensing ▸ x86 servers ▸ ISV programme ▸ Other stuff 1 18/05/2018 WhatDivider we’ve with done to date OpenVMS releases to date 3 OpenVMS I64 releases: Plus … Two OpenVMS Alpha Japanese version • V8.4-1H1 – Bolton releases: • DECforms V4.2 • – June 2015 V8.4-2L1 – February • DCPS V2.8 2017 • V8.4-2 - Maynard • FMS V2.6 • Standard OpenVMS – March 2016 • DECwindows Motif V1.7E release (Hudson) • V8.4-2L1 – Hudson • V8.4-2L2 - April 2017 – August 2016 • Performance build, EV6/EV7 (Felton) 2 18/05/2018 Products introduced from 2015 to date Technical achievements to date 65 Layered Product Releases 12 Open Source Releases OpenVMS Releases 4 VSI OpenVMS Statistics 515 VSI Defect Repairs 179 New Features Since V7.3-2 0 100 200 300 400 500 600 3 18/05/2018 Defect repairs 515 Total Defect Repairs 343 Source - Internal BZ VSI - Defect Repairs 118 Source - External BZ 54 Source - Quix 0 100 200 300 400 500 600 Testing hours Test Hours Per VSI OpenVMS Version TKSBRY IA64 V8.4-2L1 Test Hours V8.4-2 V8.4-1H1 0 20000 40000 60000 80000 100000 120000 140000 4 18/05/2018 ProductDivider roadmap with OpenVMS Integrity operating environment Released Planned BOE Components: • NOTARY V1.0 BOE Components: • • V8.4-2L1 operating system OpenSSL V1.02n • CSWS additional modules • • ANT V1.7-1B Perl V5.20-2A • PHP additional modules •
    [Show full text]
  • Development Process Regime Change
    platform Development Process Regime Change. Platform.sh for Drupal and Symfony projects. Introduction This document explains how Platform.sh can positively impact your Drupal-centric project development process. Operational data from digital agencies and systems integrators deploying Platform.sh to deliver projects is showing savings of up to 25% in developer & systems administration effort. Delays currently experienced by development teams associated with the allocation of physical resources and provisioning of environments are largely eliminated. Platform.sh is a general-purpose hosting platform for development, and can be used without limitation for a range of scenarios. From development through testing and into production, any permitted member of the team can replicate the entire technology stack end-to-end at the touch of a button. This eliminates many of the common causes of errors that often hamper code promotion through upstream environments, changing the way developers code and test even the smallest of features. As a result, Continuous Integration (CI) processes are hugely improved and Continuous Delivery (CD) becomes an achievable reality for many organizations, enhancing their ability to respond to even the smallest of changes in the marketplace. Environments are completely self-contained and can be easily branched, which makes testing, evaluation, and onboarding fast and safe. DEVELOPMENT ENVIRONMENTS PRODUCTION ENVIRONMENTS DEV 1 DEV 2 DEV n PRODUCTION A PRODUCTION B PHP/NginxPHP/Nginx PHP/Nginx PHP/Nginx PHP/Nginx PHP/Nginx
    [Show full text]
  • Memcached, Redis, and Aerospike Key-Value Stores Empirical
    Memcached, Redis, and Aerospike Key-Value Stores Empirical Comparison Anthony Anthony Yaganti Naga Malleswara Rao University of Waterloo University of Waterloo 200 University Ave W 200 University Ave W Waterloo, ON, Canada Waterloo, ON, Canada +1 (226) 808-9489 +1 (226) 505-5900 [email protected] [email protected] ABSTRACT project. Thus, the results are somewhat biased as the tested DB The popularity of NoSQL database and the availability of larger setup might be set to give more advantage of one of the systems. DRAM have generated a great interest in in-memory key-value We will discuss more in Section 8 (Related Work). stores (kv-store) in the recent years. As a consequence, many In this work, we conduct a thorough experimental evaluation by similar kv-store store projects/products has emerged. Besides the comparing three major key-value stores nowadays, namely Redis, benchmarking results provided by the KV-store developers which Memcached, and Aerospike. We first elaborate the databases that are usually tested under their favorable setups and scenario, there we tested in Section 3. Then, the evaluation methodology are very limited comprehensive resources for users to decide comprises experimental setups, i.e., single and cluster mode; which kv-store to choose given a specific workload/use-case. To benchmark setups including the description of YCSB, dataset provide users with an unbiased and up-to-date insight in selecting configurations, types workloads (i.e., read-heavy, balanced, in-memory kv-stores, we conduct a study to empirically compare write-heavy), and concurrent access; and evaluation metrics will Redis, Memcached and Aerospike on equal ground by trying to be discussed in Section 4.
    [Show full text]