Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.44 KB

Readme.md

File metadata and controls

40 lines (27 loc) · 1.44 KB

Sample Beacons microservice in Python

This sample demonstrates how to develop and dockerize a microservice in Python using Pip.Services toolkit.

The is simple a microservice that does couple things:

  • Keeps list of beacons with their IDs and locations
  • Calculates estimated device position based on beacons it can see

Detecting beacons

To write the code we are going to use Pip.Services cross-language and cross-platform microservices toolkit. If you are interested to learn more about Pip.Services, please, go to http://www.pipservices.org.

The microservice has the following design:

Microservice design

The implementation is divided into 9 steps:

  • Step 1: Creating project structure
  • Step 2: Defining data objects
  • Step 3: Implementing persistence components with tests
  • Step 4: Implementing controller compomnent with tests
  • Step 5: Implementing HTTP service using command pattern
  • Step 6: Wrapping the service into container
  • Step 7: Implementing client SDK with tests
  • Step 8: Dockerizing the microservice
  • Step 9: Deploying to kubernetes (minikube)

Happy microservice development!

Sergey Seroukhov, Founder, Conceptual Vision Consulting LLC