Hi,

I'm using AppEngine Flexible for a Discord bot. The application needs to 
keep one Web Socket connection to Discord Web Socket server. So, when the 
application starts, it opens a Web Socket connection and keep connected 
with Discord Web Socket server. 

When the application is scaling up and running multiple instances at the 
same time, it also establish multiple Web Socket connections to Discord Web 
Socket server. In the result, the bot receive same events on multiple 
instances and replies multiple identical messages.

How can I make sure that the bot establish only one Web Socket connection 
to Discord Web Socket server? 

Best,
Bao 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/f995852f-7443-464a-befe-e13845cd5838n%40googlegroups.com.

Reply via email to