I'm trying to use the evapi_async_relay function from the evapi module, however,I don't want the transaction to be suspended for more than 1 second.
For instance, if there's no response from the external application within this time frame, I want the script to continue and remove that transaction from memory.
One potential approach I am considering is to add suspended transactions to a hash table with a timestamp value. Then, using rtimer module, I could periodically parse this table every second and process the results, but I'm not sure how efficient is that.
Maybe you know other alternative, more efficient solutions (from a performance point of view) that could achieve the same goal?
Any insights or recommendations would be greatly appreciated.
Thank you.