My backend listens to events emitted from my Solana program to proccess certain events initiated by my client client-side.
Most of the time the events are received and handled correctly, but sometimes some transactions get missed and the program listener does not pick them up.
const subscriptionId = program.addEventListener("eventName", (event) => {
// Handle event...
});
This is a big issue for my web application as its dependent on my backend capturing these events. I am using a paid Helius RPC as well so I figured it shouldn't be rate limiting issues etc.
What could I be doing wrong? Is a server listening to events being emitted from my Anchor/Solana program not the most robust/conventional approach?
What other way could I do this?