Skip to content

kyle-tightest/nameko-rpc

Repository files navigation

nameko-rpc

This is a microservice project that uses the Nameko framework.
The following microservices are available:

Please read this for more information on how this project was implemented and the relevant design decisions that were made.

Minimum requirements to run

Full requirements (for development)

Setup

Build the docker images for the microservices:

make docker

If you do not have make installed, execute this command instead.

Run

Run the service using Docker-compose:

make run

If you do not have make installed, execute this command instead.

Test

Run a client using the nameko shell:

make run-client

If you do not have make installed, execute this command instead.

In this shell, you can test a client-side call to square_odd_service (Square Odd Integers) as well as the string_encoder_service (String Encoder):

>>> n.rpc.square_odd_service.square([1,2,3])
'[1, 2, 9]'

>>> n.rpc.string_encoder_service.encode(["Hello", "Invictus"])
{'Hello': '3ce949cf', 'Invictus': 'f80ceec4184f'}
>>> n.rpc.string_encoder_service.decode(string='3ce949cf')
'Hello'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published