Skip to content

Index for online reading materials in order to learn Python and backend development/engineering concepts from scratch and develop a mastery sufficient for Senior/Principal Backend Engineers and Data Engineers

License

Eldar1205/awesome-python-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

46 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Python for Backend/Data Engineers from Zero to Hero

This document is an index for online reading materials in order to learn Python and backend development/engineering concepts from scratch and develop a mastery sufficient for Senior/Principal Backend Engineers and Data Engineers.

If you have any question/proposal or want to discuss this index, do not hesitate to contact me on LinkedIn or open an issue on GitHub.



Environment setup and installations

First start by setting up a Python development environment - either interactive mode with Jupyter -or- an IDE where you can write code and then execute once done.

Tip: if you work on a personal PC not meant solely for development purposes you can use a VM to install whatever is required to develop Python in an isolated environment. To run a VM on Windows PC we recommend Hyper-V (requires Windows Pro on your PC), it works best for running a Windows VM, for running a Linux VM we recommend Oracle Virtual Box but Hyper-V works as well, for personal development it's a matter of preference, you can read more here.

  1. Python Installation
    1. [Windows] Python installation - for Windows make sure to have both Python and its scripts in your PATH environment variables, they'll be in your Python installation directory, example: image
    2. [Linux] If you are using Ubuntu 16.10 or newer, then you can easily install Python 3.10 with the following commands:
      $ sudo apt-get update
      $ sudo apt-get install python3.10
      If you're using another version of Ubuntu (e.g. the latest LTS release) or you want to use a more current Python, we recommend to use the deadsnakes PPA to install Python 3.10:
      $ sudo apt-get install software-properties-common
      $ sudo add-apt-repository ppa:deadsnakes/ppa
      $ sudo apt-get update
      $ sudo apt-get install python3.10
      You can specify the exact python version if needed. To verify which version of Python 3 you have installed, open a command prompt and run:
      $ python3 --version
  2. Understand virtual environments: Real Python reference & Official docs reference
  3. JupyterLab and Jupyter Notebook are notebook style editors for Python where you can write code, save data, write free text explanations, etc.
    1. [Windows] Python & Jupyter Notebook Windows installation guide
  4. PyCharm IDE - PyCharm is a very popular IDE for Python from JetBrains, the same company that delivers IntelliJ IDE.
  5. Python in VS Code - VS Code is a general purpose extremely popular IDE based almost entirely on extensions & plugins: VS Code reference & Real Python reference.
  6. Google Colab - online Python notebook style editor by Google. Provides access to free GPU.
  7. Dataspell - a relatively new IDE from JetBrains which supports running notebooks cells (.ipynb files). Has features of traditional IDE as opposed to Jupyter Notebooks and JupyterLabs.

General tutorials and guides

With a development environment ready you can now learn how to write Python code.

  1. W3Schools - beginners
  2. Real Python - intermediate, in depth, articles referencing useful open source packages
  3. Python official docs tutorial - exhaustive, most in depth, tutorial for must and should know built-in Python capabilities
  4. Automate the boring stuff - beginner-intermediate. Task oriented online book.
  5. GeekForGeeks - beginner-intermediate, website with short tutorials in many subjects. Contains many examples and a "try it out" widget.

Tip: start from going over W3Schools and what it has to offer, it's basic, then for every topic you wish to learn start with some exercise from Automate the boring stuff and read some Real Python article if exists, and if needed read Python official docs; Real Python is more accessible.

Important Standard Library Modules

Python ships with some standard modules, some are useful and even essential for day-to-day backend development.

Tip: to learn a moduleGoogle "python <module name>" and you'll usually find a good Real Python article and many additional useful references. Read official Python docs last.

Python official module docs: https://docs.python.org/3/py-modindex.html

  1. builtins module - primary module auto-imported to every scope
  2. enum module - support for enums
  3. abc module - implementing Abstract Classes
  4. random module - enable randomized algorithms
  5. datetime module - working with date, times, and time differences
  6. decimal module - working with precise decimal floating point arithmetic
  7. uuid module - Python's built-in uuid/guid type
  8. re module - working with regular expressions
  9. math module - math constants (e.g. PI), functions, etc.
  10. itertools module - efficient looping with iterators
    1. cycle - infinite cyclic iterations
    2. repeat - infinite/bounded repetitions of a value
    3. chain / chain.from_iterable - concat any number of iteratables
    4. compress - filter iterable by matching indicators iterable
    5. filterfalse - filter iterable by predicate * can also use comprehensions to achieve the same
    6. groupby - group's iterables items by key function
    7. islice - behaves as Sequences' slicing syntax
    8. zip_longest - like zip only pads the shorter iterable to match the longer one
    9. product - cartesian product of any number of iterables (returns iterable of tuples) * can also use nested comprehensions to achieve the same
    10. combinations_with_replacements - returns an iterable with every pair (left, right) of items from the input iterable such that left <= right
  11. functools module - higher order functions
    1. partial / partialmethod - fixes some arguments of a function and returns the resulting function
    2. reduce - aggregates an iterable's items projected by a function
    3. ** singledispatch / singledispatchmethod - generic method with implementations per type
  12. operator module - Python operators/keywords as functions for functional programming
  13. array module - efficient arrays of numeric values
  14. collections.abc module - abstract classes for implementing custom collections * Note to use Generic versions with type-hints
  15. collections module - specialized built-in collections
    1. dequeue - queue/stack
    2. ChainMap - efficient view of multiple dictionaries as single mapping
    3. Counter - histograms of keys
    4. defaultdict - dictionary with default value factory
    5. UserDict, UserList, UserString - simpler subclassing of dict, list, string * Note to use Generic versions with type-hints
  16. typing module - for type hints support, specialized strongly typed classes and using advanced typing features
    1. TypedDict , a dictionary with typed values
  17. contextlib module - for implementing context managers which can be bound to "with" statements, stack them, suppress exceptions, etc.
  18. ** dataclasses module - for creating idiomatic data classes
  19. asyncio module - support for async IO, futures, coroutines and tasks
  20. contextvars module - support for async flows local state represented as contexts
  21. ** json module - working with JSON representations
  22. ** pickle module - binary serialization
  23. logging module - logging capabilities built-in, used by most third-party libs to emit logs
  24. ** unittest module - unit testing framework built-in
  25. unittest.mock module - mocking capabilities for tests, designed for unit tests
  26. secrets module - cryptography classes & algorithms
  27. pathlib module - utilities for file system paths, particularly useful Path type
  28. ipaddress module - provides types representing IP addresses, e.g. IPv4Address

** better third-party module below

Topics Index

Learning materials can also be indexed by topics common to backend development in any prog. language/platform. The index doesn't include specific technologies, e.g. SQL databases, MongoDB, GraphQL, Google APIs, etc.; it includes topics all backend software engineers can find useful.

DISCLAIMER: All below async references were added taking into consideration only the asyncio built-in module. I'm currently looking into trio and AnyIO as alternatives.

Commonly Useful Knowledge

  1. Packages & Modules - split Python code into multiple files & packaging reusable Python code into a single package: Real Python reference & Official docs reference
    1. Example asyncio module source code, look at __init__.py
    2. Packaging modules to distribute benefit from Python Wheels
  2. Descriptors - reusable logic wrapping attributes access, generalizing properties which are defined using getter/setter/deleter methods: Real Python reference & Official docs reference
  3. Decorators - wraps method invocations with custom logic, or decorate classes for customization: Real Python reference
  4. Magic (Dunder) Methods - special builtin methods in python. Identified by two prefix and suffix underscores in the method name, e.g. __str__ magic method: Real Python reference & Official docs reference
  5. Static typing - Python type hints: Real Python reference & Official docs reference
    1. Union (replacable in Python 3.10 with the '|' syntax, sometimes explicit Union is needed)
    2. Optional (replacable in Python 3.10 with the '| None' syntax, sometimes explicit Optional is needed)
    3. Generic (generic constraints, covariance, contravariance, etc.)
    4. Protocol (essentially define interfaces for static type check purposes, can support runtime isinstance and issubclass checks using a decorator)
    • MyPy is a very popular tool for static type checks, and the docs are very useful to learn how to use type hints, integrable into Pycharm IDE as well as VS Code, and supports execution in CI technologies.
    • Pyright is another popular tool for static type checks, more far ahead than Mypy regarding support for newest Python typing features, comes built-in with VS Code Python extension and supports execution in CI technologies, however at time of writing not supported by Pycharm.
  6. Exceptions - Official docs built-in exceptions reference
    1. Tip: Derive from BaseException instead of Exception in order to implement an exception type that won't be caught by general purpose except: Exception blocks. This technique is used for cancellations exceptions raised by async/await libraries; general purpose exception handling shouldn't handle cancellations.
  7. Weak references - reference an object such that the reference doesn't keep it alive: Official docs reference
  8. Concurrency & Multithreading - using a thread pool, locking, producer-consumer patterns, thread locals, async IO, async generators & comprehensions, futures, async context variables, async synchronization primitives: Real Python Concurrency reference & Real Python asyncio reference & Official docs asyncio reference
  9. Json - fast library for working with JSON, supports dataclasses serialization - orjson
  10. Data Models - represent system entities as typed data models designed for static type checks - pydantic:
    1. Data models validations support. including support for built-in Python types as well as additional pydantic useful types mentioned in b) and c) and simple support for custom data validations for many scenarios
    2. Provides several QoL value objects to use as fields of data models, most useful IMO: HttpUrl, EmailStr, Json[T], SecretStr (a string hidden from logs)
    3. Provides constrained types such that values follow some restrictions like strings/lists of certain length, most useful IMO: constr, conint, PositiveInt, conlist, conset
    4. Supports reusable models configurations via inheritance from custom BaseModel and reusable validations using validator helper
    5. Data models JSON support - serialization and deserialization, including support for 3rd party JSON libraries e.g. orjson
    6. Support for converting custom classes (e.g. ORM objects) to data models
    7. Support for Python's built-in dataclasses module, essentially extending it
    8. Has MyPyplugin to cover static type check scenarios for creating models using the pydantic syntax
    9. Integrates withhypothesislibrary for theory testing of data models
    10. Code generation based on JSON schema, JSON data, YAML data, OpenAPI 3 * There's an alternative 3rd party called attrs, comparisons can be found online
  11. Data Manipulation - some libraries are used to manipulate/transform data
    1. NumPy - a Python library used for working with arrays
    2. Pandas - fast, powerful, flexible and simple data analysis & manipulation library
    3. Scipy - a scientific computation library that uses NumPy underneath
  12. App Settings / Configuration - representation and access to application settings & configurations, e.g. connection strings, services URLs, anything that shouldn't be hard coded and should be accessible to system code in a configurable manner.
    1. Extensive support using dynaconf supporting multi-environment, many formats, external config stores (e.g. Redis), unit tests and more
    2. Basic support from pydantic library above, can be extended to support multi-environment and custom loaders can make it leverage dynaconf
  13. File System
    1. file system access using async IO - aiofiles
    2. Path object: Real Python reference
  14. Http Client - sending HTTP requests using async IO, popular alternatives:
    1. httpx
      1. Supports: HTTP/2, client certificate, full request & response hooks, env variables config, OAuth2 extension
      2. Doesn't support: websockets
    2. aiohttp
      1. Supports: web sockets, client certificate, partial request & response hooks (allowed modifications: requests headers, enables Authentication flows), OAuth2 (via another package)
      2. Doesn't support: HTTP/2, env variables config
    • Recommended httpx for richer feature set, for web sockets client use websockets
  15. SQL ORM - object relational mapper for working with SQL databases - SQLAlchemy
    1. Integrates withMyPy for type checking SQLAlchemy models
    2. Integrates withpydantic to map SQLAlchemy models to/from pydantic models
    3. Integrates withFastAPI to expose CRUD API on top of SQL databases
    4. Integrates withFlask to expose CRUD API on top of SQL databases
    5. Django has a built-in ORM, so no SQLAlchemy integration
  16. Fault tolerance - I/O can fail, e.g. services can return HTTP error responses, SQL queries/commands can fail. There are known ways to handle failures:
    1. Retry policies - retrying failed API requests, SQL queries/commands, etc. based on some retry policy - tenacity, type hints support incomplete. There's also aioretry which requires implementing the retry policy yourself but supports type hints.
    2. Circuit Breaker - block execution of logic if it failed too many times recently, e.g. if SQL queries started failing due to overload on the SQL database, don't submit new queries for a while and let the database recover - pybreaker
  17. Binary Serialization - MessagePack is a very efficient general purpose format - msgpack
  18. Logging - logging capabilities for Python: Real Python reference
    1. Logging setup helper library - daiquiri
    2. Structured logging - emit logs as messages + key-value pairs - structlog
  19. DI Container - enable DI design principle with auto-wiring of dependencies - lagom
    1. Built-in integration with FastAPI & Flask, including per-request injectables
    2. There's also rodi which is inspired by .Net built-in DI container, less features and less Github activity (commits/contributors/etc.) but simpler to use
  20. CLI - create applications with command-line interface - typer
    1. Async main/command tip below "Sync to Async decorator"
  21. Web frameworks - build web services/applications that either provide HTML pages/components via Server Side Rendering (SSR) and templating, or RESTful HTTP APIs, or both. There are some popular alternatives, FastAPI is the recommended one:
    1. FastAPI - modern, specialized for type hints, supports explicit async IO and auto-generates Swagger UI (API spec)
    2. Flask - exists since 2010, no explicit async IO support
    3. Django - a very extensive framework with many many features, essentially an ecosystem, well documented, limited explicit async IO support * Comparisons exist online, FastAPI is mostly preferred due to explicit async IO * Useful web frameworks reference on how to evaluate them
  22. Background tasks scheduling - run background workers such that work can be scheduled (one-time or periodic):
    1. apscheduler is a scheduler for a single worker with flexible jobs store choices
    2. arq is a lightweight distributed task queue built on top of Redis
  23. gRPC Client & Server - communication using gRPC protocol which is more suited than RESTful HTTP for communication between services that are part of the same system since performance is better and describing contracts using RPC (remote procedure call) is simpler conceptually compared to RESTful HTTP contracts describing resources with URLS and verbs as actions - Real Python reference & Official Google docs reference
  24. GraphQL - data query language for web services - graphene
    1. Integrates with pydantic to query over pydantic models
    2. Integrates with FastAPI to expose GraphQL API, usually over pydantic models
    3. Integrates with Flask to expose GraphQL API over whatever data you choose
    4. Integrates with Django to expose GraphQL API over Django models
  25. Event Sourcing - represent persistent entities as changesets logs and incorporate pub-sub notifications for entities' changes to update representations of the entities in additional data stores, update search indexes, notify other systems, etc. - eventsourcing
  26. Reactive Extensions - building asynchronous event-based programs using observable collections as a concept for working with streams of asynchronous data, useful approach for implementing custom data pipelines in your Python service - RxPY
  27. Docker - Docker containers are amazing for microservices and have become the de-facto standard for building & deploying them: Docker official docs reference
    1. Docker with Python in VS Code reference
    2. Real Python Docker tutorials reference

Versioning and Environments Management

When there's multiple Python versions / multiple virtual environments / many 3rd party packages, maintenance becomes complex and there are tools to simplify it.

  1. Package managers:
    1. Recommended tool is Poetry - Virtual envs package management solution similar to npm
    2. pyenv - Python versioning manager

QoL Libraries

For day-to-day development there are some Quality of Life libraries that can speed up development, make us more productive, spare us bugs, etc.

Comprehensive useful Python libraries & frameworks index: https://github.com/vinta/awesome-python

  1. nameof() operator for names refactoring support - python-varname
  2. URL type - yarl * pydantic also ships a URL type, however it's not useful for constructing URLs as yarl
  3. Async IO enhancements:
    1. fast implementation for the asyncio module event loop - uvloop
    2. async versions of built-in functions - asyncstdlib, especially important aclosing to properly cleanup after async generators, see this discussion for details.
    3. async general purpose utilities - aiomisc
      1. Decorator support for asyncio.waitfor function
      2. Wait for any awaitable using select
      3. Turn a sync func into an async func using awaitable
      4. Async timer using PeriodicCallback / Cron scheduling
    4. async caching decorator, prevents dog-piling, flexible yet simple - py-memoize
  4. Collections:
    1. Immutable dictionary - immutables
    2. Bidirectional dictionary - bidict
    3. Multivalue dictionary - multidict
    4. Sorted collections (set, list, dict) - sortedcontainers
  5. Functional Programming enhancements:
    1. Higher order functions & iterables - toolz & more-itertools
    2. LINQ for Python, inspired by C# LINQ - py-linq
    3. Piping syntax: pipe, useful reference
    4. Pattern matching capabilities - pampy is simple and very popular
    5. Typeclasses polymorphism (better alternative for singledispatch ) - classes
    6. Type-safe alternative to throwing exceptions by returning Result objects - result
  6. Augment static type checks with very efficient randomized runtime checks that support type annotations with custom validations - for cases where static type checks aren't sufficient, e.g. you want to assert type annotations not statically checked, or you are developing a Python library (its users might not perform static type checks when calling your library's classes/functions/etc.) - beartype
  7. bject-object mapper for converting between similar classes - object-mapper or odin

Unit Testing

Automated Testing is about verifying your system code works as expected with test code that will execute your system code and assert expectations on its behavior. Unit Testing in particular is about automatic testing for small atomic code entities that have some API encapsulating implementation details, usually a class but not necessarily.

  1. VS Code extension to run & debug tests in VS Code - Python Test Explorer
  2. Recommended test framework is pytest: Real Python reference & Library docs reference
  3. Write async tests to test async system code - pytest-asyncio
  4. Mocking - unittests.mock & pytest-mock: Useful article & Real Python reference & Library docs reference * Issue: no type hints for the mocked class/function.
  5. Fake data generator - faker
    1. If you use pydantic, there's pydantic-factories to build fake models
  6. Improved assertions syntax (fluent syntax) - assertpy
  7. Test coverage reports - pytest-cov
  8. BDD testing - pytest-bdd
  9. Theory testing - hypothesis library
  10. Parameterized tests using fixtures as parameters values' providers - pytest-lazy-fixture
  11. Setup mock return values (or raised exceptions) with fluent syntax by matching arguments - nextmock
  12. Mock datetime - freezegun
  13. Mocking HTTP client
    1. Mocking aiohttp - aioresponses
    2. Mocking httpx - respx

Code Quality and Linting

To maintain high quality code it's useful to maintain coding standards and there are tools that can help with and even handle maintaining those standards.

  1. Static type checker - MyPy
  2. Style guide enforcement - Flake8. Useful extensions:
    1. flake8-builtins - checks for accidental use of builtin functions as names
    2. flake8-comprehensions - checks for misuse or lack of use of comprehensions
    3. flake8-logging-format - ensures logs use extra arguments and exception()
    4. flake8-mutable - checks for mutable default parameter values Python issue
    5. pep8-naming - checks that names follow Python standards defined in PEP8
    6. flake8-pytest-style - check that pytest unit tests are written according to style
    7. flake8-simplify - checks for general Python best practices for simpler code
  3. Code formatter - Black
  4. Import statements sorting - isort
  5. VS Code Python Linting - so VS Code will run MyPy, Flake8 (and others)
  6. VS Code Black and isort
  7. Github action for Python Code Quality and Linting

Tips and Tricks

Some useful tips & tricks that can't be classified as some stand-alone topic.

  1. Delete a virtual environment in 3 steps executed from a cmd on an active environment:
    1. command: pip freeze > requirements.txt
    2. command: pip uninstall -r requirements.txt -y
    3. command: deactivate
    4. action: delete the environment's folder
  2. Centralize imports in a reusable imports file
  3. Mark parameters as positional only so their names can be used in keyword arguments: Official docs reference
  4. Efficient string concat - converse memory that would be used in loop of string concat ops
  5. Sync to Async decorator - let's say a function is expected to not be async when invoked, and we want to implement it as async so it blocks until completion when invoked as a sync function, then we can apply a general decorator. Code here. * There's an issue with type-hints to express the decorator receiving a sync callable and returning an async callable, solved in Python 3.10: Parameter Specific Variables.
  6. Get a function's caller info: code of "findCaller" method in Python's logging source code
  7. Translate (some) LINQ to Python instead of using py-linq library above
  8. Correctly executing sync/async generators so a finally clause runs explicitly
  9. Multi-core async IO (multiple event loops)
  10. Fork-join pattern with pool executors, can read about Fork-join concurrency pattern here.
  11. Limiting concurrency for large number of async IO tasks
  12. Limiting concurrency for outgoing HTTP requests sent with aiohttp

Documentation

Documenting modules/classes/functions/etc. enables other team members (and you in the future) to understand what some API in the code does without having to inspect how it's implemented. When developing open-source the documentation is a must and needs to be available as professional online docs and not just in-code docs.

  1. Python Documentation guide: Real Python reference
  2. NumPy Docstrings guidelines - recommended standard docstrings style, not only one
  3. Enforce docstrings style - pydocstyle
    1. Flake8 plugin for pydocstyle
  4. Professional documentation with reStructuredText (to publish PDF/HTML/etc.)
  5. Markdown files are supported as is in VS Code, e.g. Git README.md files
    1. Useful VS Code extension - Markdown All in One
    2. Github markdown quick tutorial

Distributed programming frameworks

In many cases the backend architecture needs to include highly scalable distributed services where clusters of service instances can efficiently communicate between each other, persist data, recover from crashes, load balance work, etc. Good frameworks can make it simpler to implement them by providing useful abstractions for distributed programming/computing and persisting durable state.

The frameworks were chosen for their wide adoption, great features, accessible documentation and supporting modern Python features such as async-await, type hints, etc. * Most frameworks build on some data store that's referenced without explanations. * General purpose containers orchestrators are great alternatives, e.g. Kubernetes

  1. Celery - a distributed task queue & scheduling framework which provides workers that execute RPC jobs consumed from a flexible choice of message brokers (usually RabbitMQ or Redis) with job results persisted to a flexible choice of stores. Features:
    1. Periodic tasks
    2. Workflows
    3. Custom objects serialization (e.g. can use pydantic models as messages)
    4. Interception for many events using signals APIs
    5. Instrumentation: Monitoring, logging & visualization capabilities
    6. Admin CLI, REST API & Web UI
    7. No async-await syntax support, can use gevent for implicit non-blocking I/O
    8. No official Windows support, there are workarounds * Useful production ready deployment reference
  2. Faust - a microservices framework which provides abstractions for stream processing with stateful agents that process infinite streams of messages built on top of Kafka for pub-sub and queue based messaging (extensible), RocksDB as local persistent tables store and (optionally) Redis as distributed cache. Co-founded by Celery founder. Features:
    1. Queue channels - single consumer per message
    2. Client mode - can send messages to a cluster
    3. Startup tasks
    4. Periodic tasks
    5. Cluster scope synchronization via leader election
    6. Custom objects serialization (e.g. can use pydantic models as messages)
    7. Interception for many events using sensor APIs
    8. Instrumentation: Monitoring, logging & visualization capabilities
    9. Admin CLI & Web UI
    10. Integration testing support (runs locally with everything in-memory)
    11. E2E testing support in staging/production deployments
    12. No process recovery for workers - external process supervisors are required
  3. Airflow - A workflow framework for orchestrating distributed scheduled/triggered workflows (a.k.a DAGs) described using Python scripts such that workers can execute tasks (a.k.a operators) in workflows. Built on top of SQL databases for workflow state persistence and can execute on a cluster directly using Celeryor Dask, on a Kubernetes cluster, or managed in AWS/GCP. Comes with several core operators and there's a great deal of independent ones and a registry of built-in & community provided ones. Features:
    1. Operators: Python code, Branching, Run DAG, HTTP request, SQL checks, etc.
    2. Sensors (operators waiting for events): Python code, SQL query, Time Wait, etc.
    3. Cross DAG dependencies (task in DAG X waits for task in DAG Y)
    4. DAG templates with Jinja and injecting values from env variables/JSON files/etc.
    5. Flexible DAG runs triggers: schedule based, re-runs, tasks results, ad-hoc, etc.
    6. Communications between executing DAGs/tasks
    7. Resources management: tasks priorities, processes pools
    8. Interception for DAG & operator specs and for tasks before execution
    9. Create Python packages with utilities, operators, etc. to reuse in DAG scripts
    10. DAGs validation (useful reference):
      1. Static DAG analysis with unit tests
      2. Data integrity tests in the DAG itself, e.g. using Great Expectations
    11. Instrumentation: Monitoring, logging & visualization capabilities
    12. Reusable connections to external services/APIs
    13. Plugins for the Web UI, custom reusable connections and DAG template macros
    14. Admin CLI, REST API & Web UI
    15. No Windows support , however the Linux subsystem can be used
  4. Ray - A workers & actors framework for implementing distributed, fault tolerant and scalable applications specialized for data science but usable for any distributed computing. Workers are stateless, actors are stateful, both are Python processes and therefore heavyweight and coarse grained. Ray has an academic whitepaper. Features:
    1. Client mode - can send RPC requests to a cluster
    2. Auto-scaling (integrates to cluster managers) based on scale related settings
    3. Java prog. language support (not just Python)
    4. GPU scheduling (for machine learning purposes)
    5. Custom objects serialization
    6. Performance profiling: metrics, visualization, dumps, etc.
    7. Instrumentation: Monitoring, logging & visualization capabilities
    8. Admin CLI & Web UI
    9. Integration testing support (runs locally with multi process cluster)
    10. Kubernetes deployment
    11. Integrates with Airflow and other useful technologies
    12. Missing support for interception for workers and actors
    13. Alpha quality Windows support , can try to run on WSL if there are issues
  • Ray actors are heavyweight processes, unlike Orleans (.Net) and Akka (Java/Scala).
  • Python has a lightweight actors framework Thespian, much less popular than above.

Contribution

Your contributions and proposals are always welcome! Please refer to the contribution guidelines first.

I may keep some pull requests open until I look into the references myself, you could vote for them by adding πŸ‘ to them.

Contributors

Raphael
Raphael

πŸ–‹
Liron Soffer
Liron Soffer

πŸ–‹
Yael Davidov
Yael Davidov

πŸ–‹

About

Index for online reading materials in order to learn Python and backend development/engineering concepts from scratch and develop a mastery sufficient for Senior/Principal Backend Engineers and Data Engineers

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published