Skip to content

pip-services-samples/sample-beacons-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Step by step guide for sample data microservice in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •