Samreay commented on issue #55: URL: https://github.com/apache/pulsar-client-python/issues/55#issuecomment-1539374455
I think a larger point to possibly be made here is the difficulty of using pulsar with other libraries without these features. For example, consider a user trying to write a simple FastAPI server that simply exposes a REST endpoint for a client that gives that latest value in a topic. If they were using Kafka, they could use `broadcaster` (like suggested [here](https://github.com/tiangolo/fastapi/discussions/6918)), or they could use `aiokafka` (an example of this would be [here](https://github.com/pedrodeoliveira/fastapi-kafka-consumer) and [here](https://github.com/tiangolo/fastapi/discussions/6992)). These third party libraries that allow background processing generally require coroutines to be passed in and don't support synchronous functions because that's obviously a nightmare with python and GIL. I'm not even sure on how to nicely implement the FastAPI example with Pulsar client, or if the increased complexity means the realistic solution is "Yeah just use kafka" -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
