Skip to content

Http server for discord bot. #9751

Answered by No767
denisyakimov07 asked this question in Q&A
Discussion options

You must be logged in to vote

@denisyakimov07 You would ideally want to restructure this into an stronger link. From game sever to the bot directly would be better. Trying to get the logs to an API and then back down doesn't make any sense as now you have weaker links between those services and the risk of failures would increase. You want to design your infra to minimize points of failure. So that's why I suggested directly hitting the bot instead. If you do go that route, then I would propose hooking up an aiohttp web server along your bot, and maintaining an websocket connection between your game server and aiohttp web server.

One of the factors that I would think about here is whether it's worth it to take these l…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@MCausc78
Comment options

@No767
Comment options

@No767
Comment options

Answer selected by denisyakimov07
@denisyakimov07
Comment options

@No767
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants