We are using Twitter4j stream (Public Stream) API to listen the event generated by Twitter and consumed at our product/application.
If we have two application with same configuration to connect to twitter and both applications listens the data generated from the twitter. So when we generate the let say 10 events then all 10 events are received on both the applications and we don’t see any load balancing supported at API level.
So we need a confirmation whether the Twitter4j stream API supports the Load Balancing or not?
Not natively no, twitter4j will keep 1 connection open and it’s up to your own java code to deal with the incoming objects. Kafka or zeromq or another queue should work if you want something that will be easy to load balance
system
Closed
#3
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.