-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BOT-API] Build executable binary #43
Comments
@sourabhxyz Could you please change the cabal config to provide an executable binary? |
@4TT1L4 There shouldn't be an overhead if source files have not changed. The delay that you are seeing is likely due to the time it requires to initialise the Atlas's blockchain provider which in general takes ~30 seconds. |
Could you please add a log message when the initialization starts and finished? Otherwise it is not really possible to tell where the time goes. I am also not sure if we should be "resolving dependencies" in production. I still think that we should build a binary and distribute this.
|
You are free to use static binary, I simply meant that this would not solve the delay issue you are seeing.
Logging in itself rely on initialisation of provider.
Normally one would use |
Thank you for the notice.
Could you please add this? So we could see different events, like: application started, initializing, initialization is finished. If no log messages are logged, then it is not really possible to tell where the time goes.
Thank you for pointing me to the binary and sharing the command. I can try to do the same and locate the binary in the docker container. I was trying to install it, but install was failing with some error message. |
Elaborating on my earlier message, to log we require to initialise a provider which takes ~30 seconds. So we cannot make a log before we initialise it. |
@sourabhxyz Please make sure that |
Problem:
The Bot API Server is started using
cabal run
. This is not optimal, since cabal needs to look up some dependencies on every startup:The process to resolve dependencies on startup takes way to long, adding 20-30 seconds to the startup time.
Solution:
The text was updated successfully, but these errors were encountered: