Pattern matching has been with us since Python3.10. Since the introduction of the match-case statement, we've got a powerful and elegant tool to control the flow of the program.
This talk is to showcase a real-world scenario of handling different messages coming from a broker, using match-case and Pydantic.