Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2204

Using Redis just for blocking and call back functionality or springboot

$
0
0

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.

  1. Is there any springboot equivalent to do something like this or redis is a good choice for this.
  2. 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.

Viewing all articles
Browse latest Browse all 2204

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>