You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to do a long polling, while handling an http request from a client of my API, to give an adequate response.
Until this data is provisioned by a CDC flow from Kafka to my database, the application does long polling at periodic ReactPHP intervals in my database using your mysql client.
I would like suggestions on how I can optimize this flow of many queries in my database, what is the best way to configure your mysql client so as not to generate bottlenecks in my database or in my application?
There is no configuration to tweak this on the client it self. To improve performence here is what I would do:
Combine all periodic timers into one per container polling all outstanding long polls in one query so you have one bigger query instead of countless many small queries and timers. This will make both the event loop and the database server less busy. However I also would consider doing the queries in groups of 1000, or another number after some research which gives you the best performance vs busyness ratio.
I need to do a long polling, while handling an http request from a client of my API, to give an adequate response.
Until this data is provisioned by a CDC flow from Kafka to my database, the application does long polling at periodic ReactPHP intervals in my database using your mysql client.
I would like suggestions on how I can optimize this flow of many queries in my database, what is the best way to configure your mysql client so as not to generate bottlenecks in my database or in my application?
The Application runs in multiple containers.
Thank you for suggestions!
Example:
The text was updated successfully, but these errors were encountered: