Lab: what every production Python microservice reimplements¶
service.py is the hundred-line service from the post: servicewright for the lifecycle,
sqlalchemy-foundation-kit for sessions, clientwright for the outbound client, deadline-budget for
the request deadline. run_skeleton.py starts PostgreSQL in a container, a stub warehouse that
reports the deadline header it received, and the service as a subprocess, then calls it, sends
SIGTERM and prints the timeline.