Django intergration for nameko microservice framework.
Project description
nameko-django
Django intergration for nameko microservice framework
Custom Kombu Serializer for django Object using msgpack and pickle
This serializer is fully compatible with msgpack so it can be used like this:
serializer: 'django_msgpackpickle'
ACCEPT: ['msgpack', 'django_msgpackpickle']
SERIALIZERS:
msgpack:
encoder: 'msgpack.dumps'
decoder: 'nameko_django.serializer.loads'
content_type: 'application/x-msgpack'
content_encoding: 'binary'
In order to migrate an existing microservices stack to use this new serializer first install and setup all project
serializer: 'msgpack'
ACCEPT: ['msgpack', 'django_msgpackpickle']
SERIALIZERS:
msgpack:
encoder: 'msgpack.dumps'
decoder: 'nameko_django.serializer.loads'
content_type: 'application/x-msgpack'
content_encoding: 'binary'
This will accept both of the msgpack
and django_msgpackpickle
but only output of result portfolio using msgpack
Once all service migrated, then switch to the first configuration
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
nameko-django-1.0.0.tar.gz
(15.5 kB
view hashes)
Built Distributions
nameko_django-1.0.0-py2.7.egg
(5.6 kB
view hashes)
Close
Hashes for nameko_django-1.0.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e825cf5cd26615f2b4834eb9e9b041c6dc670397330f2fc5fab6e6606c252746 |
|
MD5 | 74058760e5e469888c7e99f07706406c |
|
BLAKE2b-256 | 426562126ff97833174744dc8af23a9c210c397aa8b3b5107a86f4b21655502c |