Redis is single-threaded. Always has been, probably always will be. You shouldn't need to use a transaction if you're doing a single command: SET HSET, GET, etc. Transactions are useful for multiple commands that need to all succeed.
@codingkevin
i write code
Experienced developer, still love the nuts and bolts of it all. Never satisfied with current knowledge, always seeking more.
Nothing here yet.
No blogs yet.
Redis is single-threaded. Always has been, probably always will be. You shouldn't need to use a transaction if you're doing a single command: SET HSET, GET, etc. Transactions are useful for multiple commands that need to all succeed.
Which line are you getting the error on? If it's line 6, I would say that kafka isn't installed correctly on your machine. If it's line 12, try: producer = KafkaProducer(bootstrap_servers="Broker_list") The namespace is unnecessary as you've already directly imported it. If you want to keep the namespace, change line 6 to: import kafka