DEV Community

Cover image for Python Microservices, Part 2: Build and Test REST endpoints with Tornado
Satish Chandra Gupta
Satish Chandra Gupta

Posted on • Updated on • Originally published at ml4devs.com

Python Microservices, Part 2: Build and Test REST endpoints with Tornado

Learn to implement Tornado HTTP endpoints as a layer on business logic. Tune it to assist debugging, and write unit and integration tests.


This blog post covers some of the best practices we learned while building microservices powering Slang Lab's platform; how to:

  • Design REST endpoints as a separate layer over business logic,
  • Implement Tornado HTTP server and service endpoint handlers,
  • Use Tornado hooks to control behavior and assist debugging, and
  • Write unit and integration tests using Tornado testing infra.

(Based on a PyCon India 2019 tutorial.)

Continue reading ยป

Top comments (0)