This is what I am trying to do and wondering if I should use Redis or there is a springboot equivalent that I could use for what I am trying to achieve.
I am trying to send a receipt of a transaction to a merchant. I need to attach digital signature for that transaction in the receipt. That would be a call to a separate API to get the digital signature which could return me a 200 or 404 not found. At this point there could be a scenario that digital signature is not available, in that case, I need to wait for a specific amount of time for the signature to become available and if it times out then need to send the receipt without the digital signature.
I am using Java and SpringBoot.
What would be the best way to implement something like this. I read that redis has a timeout, callback functionality which can be leveraged for this.
- Is there any springboot equivalent to do something like this or redis is a good choice for this.
- If redis would be a good choice for this, how can I leverage redis just for this purpose. I have access to a container running redis and I can configure my application to access this redis. However I have no clue of how I can go about using redis for this purpose.