Skip to main content

Synchronizer design pattern library

Project description

Description

This system is dedicated to help to synchronize data of resources.

License Development Status Latest release Supported Python versions Supported Python implementations Download format Build status Code test coverage Downloads Documentation Status Code Health

Installation

pip install b3j0f.sync

Features

The global architecture is composed of four classes:

  • Synchronizer: class which is linked to several stores in order to propagate data CRUD operations on these last ones.

  • Store: class which represents a set of data, and uses one Accessor per data type in order to access to self data.

  • Accessor: class which permits to access and create data.

  • Data: specific to an accessor, it is the abstraction class used to exchange data information among stores.

Therefore, one Store can be used by several synchronizers, and one Accessor can be used by several Stores.

The Synchronizer and the Store are configurables (see b3j0f.conf). Configuration files are installed in the ~/etc/ directory.

If you want to specialize this system to your own needs, you have to extend abstract classes with implementation of 6 CRUD methods for the Accessor.

The system does not use semantical mechanisms, therefore, the system is in a best effort mode instead to be exhaustive.

Examples

  • b3j0f.dmts: development management tool synchronizer.

Limitations

Name limitation

In order to ensure data consistency among several stores, the system choose to find any data from its name and context name (aka, name of embedding data).

Therefore, this system is not able to synchronize data which are of the same type of other data, in the same context, and with the same name.

Perspectives

  • break the name limitation with a store dedicated to ensure correspondance between store data ids.

  • use a data id of type int instead of type str, for memory reasons.

  • wait feedbacks during 6 months before passing it to a stable version.

  • Cython implementation.

Donation

I'm grateful for gifts, but don't have a specific funding goal.

Project details


Download files

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

Source Distributions

b3j0f.sync-0.0.3.zip (32.3 kB view hashes)

Uploaded Source

b3j0f.sync-0.0.3.tar.gz (15.7 kB view hashes)

Uploaded Source

Built Distribution

b3j0f.sync-0.0.3-py2.py3-none-any.whl (28.7 kB view hashes)

Uploaded Python 2 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