-
-
Notifications
You must be signed in to change notification settings - Fork 861
Description
Hello,
I developped a simple web app. Its goal is to allow people in a party to add songs to the queue via a link or a qrcode.
The app works flawlessly when I test it alone deployed or not or when I run tests.
But when my app is used by real users I often get an error saying that the app is unable to find a data in the db while this data exists in the db.
{"message":"Uncaught PHP Exception Error: "Call to a member function getId() on null"
The object is null while it should not because data is indeed present in the db. I checked that by running queries in the db service of the container.
And a few seconds later The app is able to fetch the data.
After a few un successful tries, I have to completely compose down and up to retrieve my app.
Initially I thought that I had reached the ceiling of the requests my VPS could handle so I upgraded my plan by two steps from 5€ a month to 15€ a month.
This happens usually when I reach at least 20 users in the party.
It seems that the app has difficulty to communicate with the mysql service.
Maybe I should change to postgres or something else.
I have already ran docker system prune and have no unused images on the vPS.
Any idea?