Skip to content

Commit

Permalink
Merge pull request #1 from tranvietanh1991/develop
Browse files Browse the repository at this point in the history
Merge develop to master to test PR auto build
  • Loading branch information
0xGosu committed Sep 5, 2019
2 parents b6138d1 + e4a1a93 commit d3ae8a0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service_name: travis-pro
repo_token: yJvGMFVpwsBKYtLpO6nNkVMEsikIwquyH
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# django-nameko

## Travis-CI [![Coverage Status](https://coveralls.io/repos/github/tranvietanh1991/nameko-django/badge.svg)](https://coveralls.io/github/tranvietanh1991/nameko-django)
| Branch | Build status |
| ------- | ---------------------------------------- |
| master | [![Build Status](https://travis-ci.org/tranvietanh1991/nameko-django.svg?branch=master)](https://travis-ci.org/tranvietanh1991/nameko-django) |
| develop | [![Build Status](https://travis-ci.org/tranvietanh1991/nameko-django.svg?branch=develop)](https://travis-ci.org/tranvietanh1991/nameko-django) |

# nameko-django
Django intergration for nameko microservice framework

Expand All @@ -10,19 +18,20 @@ serializer: 'django_msgpackpickle'
ACCEPT: ['msgpack', 'django_msgpackpickle']
SERIALIZERS:
msgpack:
encoder: 'msgpack.dumps'
encoder: 'nameko_django.serializer.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
In order to migrate an existing microservices stack (that use `msgpack` serializer) to use this new serializer
first install and setup all project
```yaml
serializer: 'msgpack'
ACCEPT: ['msgpack', 'django_msgpackpickle']
SERIALIZERS:
msgpack:
encoder: 'msgpack.dumps'
encoder: 'nameko_django.serializer.pack'
decoder: 'nameko_django.serializer.loads'
content_type: 'application/x-msgpack'
content_encoding: 'binary'
Expand Down

0 comments on commit d3ae8a0

Please sign in to comment.