Best suitable service for Discord Bot Deployment

Tien Nguyen 1 Reputation point
2021-10-18T10:59:03.367+00:00

Hello everyone,
I have just finished a Discord Bot and try to deploy with Azure Services.
I looked around many services that Azure provides such as Virtual Machines, App Services, Function App,... and confused to choose the best suitable one.
Some details about my bot: This Bot opens a socket and connect to Discord, it always wakes up to receive command and send back images via the opened socket.
I would like to use Function App but i wonder if it falls into sleep state after a long time no using.
Please help me to choose the best suitable option.
Thanks all!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,306 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,928 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Cristian SPIRIDON 4,471 Reputation points
    2021-10-18T16:13:36.71+00:00

    Hi,

    If you want to use Azure Function and consumption plan which is least expensive, then, bellow is a nice article that describe the behavior of cold start of azure function:

    https://mikhail.io/serverless/coldstarts/azure/

    If you know that you will have a lot of requests then you can use Premium/Dedicated plans and have the option to pre-warm the function:
    https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale

    Hope this helps!