I am looking for help as I am a bit lost when it comes to the various options of scaling my app. I have an app with a postgres db in the background. Lately, I have been experiencing performance issues, i.e. it takes a long time for pages to load or at times they don’t even load at all. I have looked at the documentation for scaling the app but I honeslty don’t know which option would be best.
Would love to hear about your experiences on what helped to increase the performance of your app in terms of the various scaling options available through fly.io.
What kind of information/details would be helpful? Apologies, but I am not an expert at all and thus wouldn’t even know what you needed to know to provide some guidance. What I can tell you is my app is a django-based app with a postgres database running in the backend. My frontend is very simple, i.e. only html, bootstrap, a bit of custom css and very little javascript.
Please let me know what you else you need to know to provide some guidance on improving the performance through the scaling options that fly.io provides.
Memory usage, how much traffic your site is getting to start. Is the front and back end running in the same app or are they 2 separate apps talking to each other.
You said your front end is simple but it’s not loading sometimes, w/o much info it doesn’t sound like a infra scaling problem, but rather your app’s architecture.
@neptunhiker If you don’t know where to look, you might want to integrate Sentry and enable tracing/performance. This will show you which part of the request handling is slow, and if there are any crashes.
You will be asked for your app’s technology when creating a new project. Select Django to get hints and documentation specific to Django.