Skip to main content

Python asynchronous library for synchronizing replicated microservices

Project description

aiodistributor

Python Asynchronous Library for Synchronization of Replicated Microservices

codecov tests

This library provides a set of tools for synchronizing replicated microservices using Redis. The main goal is to facilitate inter-service communication, rate limiting, and throttling mechanisms in a distributed environment.

Features:

  • Distributed sliding counter for implementing rate limiting or throttle mechanisms.
  • Distributed waiter for waiting for signals from other nodes or services and triggering the appropriate callback.
  • Distributed task for managing and distributing tasks across multiple nodes or services.
  • Distributed cache for caching data and sharing it among services.
  • Distributed notifier for event-driven communication between nodes or services.
  • Utilizes Redis for storage and message passing between nodes.
  • Asynchronous and non-blocking design using Python's asyncio library.

Dependencies

  • Python 3.10+
  • Redis server
  • redis-py or aioredis

Installation

To install the aiodistributor library, you can simply use pip:

pip install aiodistributor

Usage

Detailed examples and usage instructions can be found in examples folder

Contributing

Contributions are welcome! Please submit a pull request or create an issue to discuss proposed changes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiodistributor-0.0.2.1.tar.gz (13.2 kB view hashes)

Uploaded Source

Built Distribution

aiodistributor-0.0.2.1-py3-none-any.whl (14.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page