DEV Community

loading...
Cover image for Python Microservices, Part 2: Build and Test REST endpoints with Tornado

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

Satish Chandra Gupta
Machine Learning Practitioner. I learn & write about doing ML in production. Cofounder: SlangLabs.in. Ex: Amazon, Microsoft Research. Newsletter: ML4Devs.com
Originally published at slanglabs.in ・1 min read

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 »

Discussion (0)