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.)