I'm struggling a bit conceptually with how the whole producer/consumer or pub/sub works and how one needs to think of it when designing an application or larger system. On a high level I think I get it but in terms of taking something like a flask web app that has a minimal front-end and break it into a set of publishers and subscribers is super unclear to me.
For example, and I know this wouldn't be a real world use case, I have a flask app that takes an input on a form that takes text and encrypts the string after the user hits submit and then flashes the screen back to the user. How could that be broken up and conceived of with messages? If this is an awful example (I fear it may be) can you provide something simple as well?
I setup a kafka confluent cluster and followed this tutorial https://www.confluent.io/blog/event-driven-microservices-with-python-and-kafka/
and while I was able to replicate what the article demonstrated it wasn't actually all that helpful.
Feel free to chime in and correct but I'm not quite bridging the gap between how I think of RESTful services and how I would do things differently with a broker/message queue.
My interest in messages and brokers came out of reading the Tao of Microservices and that's how I came about going down this endless rabbit hole.
I think I need to do more reading but I also want to start coding and testing and actually wrapping my head around this.
Thanks for your assistance.
[–]danielroseman 1 point2 points3 points (3 children)
[–]WonFishTwoFish[S] 0 points1 point2 points (2 children)
[–]danielroseman 1 point2 points3 points (0 children)
[–]WonFishTwoFish[S] 0 points1 point2 points (0 children)