[Pycon] [new paper] "Chirag Shah" - Understanding Caching in Python
info a pycon.it
info a pycon.it
Gio 3 Gen 2019 18:10:51 CET
Title: Understanding Caching in Python
Duration: 45 (includes Q&A)
Q&A Session: 0
Language: en
Type: Talk
Abstract: **In this talk, I am going to speak about advanced concepts of Python related to Caching.**
A cache can be easily understood as a saved answer to a question. Caching can speed up an application if a computationally complex question is asked frequently. Instead of the computing the answer over and over, we can use the previously cached answer. Caching is an important component while scaling applications which are to be used by many users. It solves various problems related to cost and latency. Usually it takes more time to retrieve data from DB rather than cache. Using a cache to avoid recomputing data or accessing a slow database provides us with a great performance boost.
I will describe in depth the different methods of Caching, their pros and cons. This talk will help developers focus on their code before scaling their applications.
Outcomes: The novice audience will be able to understand basic Caching Mechanisms. They will be able to utiilize their knowledge which will serve pivotal while scaling applications
Contents to be covered in talk:
- Local Caching: What is it, how to do it, example, built-in Python libraries: (using cachetools), advantages, dis-advantages
- Dictionaries and hashing 101: How caching leverage the power of dicts under the hood in Python. Understanding how actually dicts work with help of CPython reference implementation
- Memoization: What is it, pseudo-code algorithm, implementation using example, built-in Python libraries: (using lru_cache), advantages, dis-advantages
- Distributed Caching: What is it, techniques: (using memcached, using pymemcache)
Tags: [u'computer-science', u'caching', u'CPython']
Maggiori informazioni sulla lista
Pycon