~/talk

Simplifying Event-Driven Services with FastStream: A How-To Guide

Talkat DSC Europe 23 · 2023-11-20..11-24· [python, microservices]
links:none on file
slides:none on file

FastStream is an open‑source Python framework that wires Pydantic models to async brokers so handlers are called on incoming messages and return values are published automatically; it uses Pydantic for parsing, aio-kafka for Kafka I/O and emits AsyncAPI docs. Demo app consumes names and produces greetings via Kafka, tests run against an in‑memory test broker (one example test passes), supports partition keys, batched consume/publish, SSL/SASL security abstractions, FastAPI routing, CLI run with multi‑worker (CPU‑bound) orchestration.

AI-written summary · about

  1. 0:00Introduction
  2. 1:45Motivation for FastStream
  3. 5:19Design goals
  4. 8:30Merging FastKafka and Propan
  5. 9:34Core architecture and broker setup
  6. 12:23Custom message encoding
  7. 13:26Handling Kafka partitions
  8. 14:34Batch processing
  9. 15:36Security configuration
  10. 17:52Local testing
  11. 20:26Switching between Kafka and RabbitMQ
  12. 21:49AsyncAPI documentation
  13. 23:38Sample application
  14. 26:38Q&A batch handling
  15. 27:00Project structure
  16. 30:03Running the application with Docker
  17. 34:10CI/CD setup
  18. 36:00AsyncAPI deployment
  19. 38:08Writing tests
  20. 41:19FastStream with FastAPI
  21. 47:06Q&A deployment and stateful functions
  22. 49:37Closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.