All Projects → eventbrite → Pysoa

eventbrite / Pysoa

Licence: apache-2.0
A Python library for writing (micro)services and their clients

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Pysoa

Restana
Super fast and minimalist framework for building REST micro-services.
Stars: ✭ 341 (+360.81%)
Mutual labels:  microservices, framework
Baseplate.py
reddit's python service framework
Stars: ✭ 416 (+462.16%)
Mutual labels:  services, framework
Eventhus
Go - CQRS / Event Sourcing made easy - Go
Stars: ✭ 350 (+372.97%)
Mutual labels:  microservices, framework
mezon
Mezon is a simple php framework wich will help you to create business applications.
Stars: ✭ 35 (-52.7%)
Mutual labels:  services, soa
Phpboot
☕️ 🚀 tiny & fast PHP framework for building Microservices/RESTful APIs, with useful features: IOC, Hook, ORM, RPC, Swagger, Annotation, Parameters binding, Validation, etc.
Stars: ✭ 638 (+762.16%)
Mutual labels:  microservices, framework
ddd-example-ecommerce
Domain-driven design example in Java with Spring framework
Stars: ✭ 73 (-1.35%)
Mutual labels:  services, soa
Nameko
Python framework for building microservices
Stars: ✭ 4,182 (+5551.35%)
Mutual labels:  microservices, framework
Kratos
A modular-designed and easy-to-use microservices framework in Go.
Stars: ✭ 15,844 (+21310.81%)
Mutual labels:  microservices, framework
Microservices Framework Benchmark
Raw benchmarks on throughput, latency and transfer of Hello World on popular microservices frameworks
Stars: ✭ 615 (+731.08%)
Mutual labels:  microservices, framework
Hydra
A light-weight library for building distributed applications such as microservices
Stars: ✭ 611 (+725.68%)
Mutual labels:  microservices, services
Apworks Core
Apworks framework supporting .NET Core
Stars: ✭ 190 (+156.76%)
Mutual labels:  microservices, framework
Zato
ESB, SOA, REST, APIs and Cloud Integrations in Python
Stars: ✭ 889 (+1101.35%)
Mutual labels:  microservices, soa
Finatra
Fast, testable, Scala services built on TwitterServer and Finagle
Stars: ✭ 2,126 (+2772.97%)
Mutual labels:  microservices, framework
Swoft Framework
[READ ONLY] Swoft Framework, base of Swoft
Stars: ✭ 70 (-5.41%)
Mutual labels:  soa, framework
Priest
dubbo mybatis springboot base soa rest api framework with customer code generator
Stars: ✭ 160 (+116.22%)
Mutual labels:  microservices, soa
Cloudi
A Cloud at the lowest level!
Stars: ✭ 352 (+375.68%)
Mutual labels:  microservices, soa
Microservices Architecture
《微服务架构设计》
Stars: ✭ 113 (+52.7%)
Mutual labels:  microservices, soa
Framework
Repositório principal contendo o Core e Extensions: JPA, Security, WS
Stars: ✭ 124 (+67.57%)
Mutual labels:  microservices, framework
Deep Framework
Full-stack JavaScript Framework for Cloud-Native Web Applications (perfect for Serverless use cases)
Stars: ✭ 533 (+620.27%)
Mutual labels:  microservices, framework
Servicetalk
A networking framework that evolves with your application
Stars: ✭ 656 (+786.49%)
Mutual labels:  microservices, framework

PySOA - Fast Python (micro)Services

.. image:: https://readthedocs.org/projects/pysoa/badge/ :target: https://pysoa.readthedocs.io

.. image:: https://pepy.tech/badge/pysoa :target: https://pepy.tech/project/pysoa

.. image:: https://img.shields.io/pypi/l/pysoa.svg :target: https://pypi.python.org/pypi/pysoa

.. image:: https://api.travis-ci.org/eventbrite/pysoa.svg :target: https://travis-ci.org/eventbrite/pysoa

.. image:: https://img.shields.io/pypi/v/pysoa.svg :target: https://pypi.python.org/pypi/pysoa

.. image:: https://img.shields.io/pypi/wheel/pysoa.svg :target: https://pypi.python.org/pypi/pysoa

.. image:: https://img.shields.io/pypi/pyversions/pysoa.svg :target: https://pypi.python.org/pypi/pysoa

PySOA is a general-purpose library for writing fast Python (micro)services and their clients, based on an RPC (remote procedure call) calling style. It provides both a client and a server, which can be used directly by themselves or, as we do, extended with extra functionality (our authentication, database routing, and other code is written as private middleware and runs on top of this library).

PySOA uses the concept of pluggable "transports" to define a layer for sending requests and responses (messages) between clients and servers. The default, production-ready included transport is a Redis <https://redis.io/>_ pub-sub layer, which we use in combination with Redis Sentinel in clusters. A single Redis cluster is capable of handling tens of thousands of PySOA messages per second with extremely efficient and desirable load-balancing properties. There is also a local transport implementation primarily used for testing and demonstration but capable of being used in production where appropriate.

Basic Tenets

  • Services and actions both have simple names, and are called from the client by name. You can call actions individually, or bundle multiple action calls into a "job" to be run serially (either aborting or continuing on error).

  • Requests and responses are simply Python dictionaries, and PySOA uses our open source validation framework Conformity <https://github.com/eventbrite/conformity>_ in order to verify their schema on the way in and out.

  • Message bodies are encoded using MessagePack <http://msgpack.org/>_ by default (however, you can define your own serializer), with a few non-standard types encoded using MessagePack extensions, such as dates, times, date-times, and amounts of currency (using our open source currint <https://github.com/eventbrite/currint>_ library).

  • Requests have a context, which is sourced from the original client context (web request, API request, etc.) and automatically chained down into subsequent client calls made inside the service. This is used for contextual request information like correlation IDs, authentication tokens, locales, etc.

  • We include "SOA Switches" as a first-party implementation of feature flags/toggles. Part of the context, they are bundled along with every request and automatically chained, and are packed as integers to ensure they have minimal overhead.

This intro summarizes some of the key concepts of using PySOA. For more thorough documentation, see the PySOA Documentation <https://pysoa.readthedocs.io>_.

License

PySOA is licensed under the Apache License, version 2.0 <LICENSE>_.

Installation

PySOA is available in PyPi and can be installing directly via Pip or listed in setup.py, requirements.txt, or Pipfile:

.. code-block:: bash

pip install 'pysoa~=1.2'

.. code-block:: python

install_requires=[
    ...
    'pysoa~=1.2',
    ...
]

.. code-block:: text

pysoa~=1.2

.. code-block:: text

pysoa = {version="~=1.2"}

Documentation

The complete PySOA documentation is available on Read the Docs <https://pysoa.readthedocs.io>_!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].