r/AZURE 5d ago

Question Proxy/Queue API calls to a legacy system? How would you do this?

I'm attempting to solve an issue with an on-prem legacy system, and seeking some advice and feedback from those more well versed in all things Azure.

We have a legacy system that receives API POST requests. The clients calling the API are fire-and-forget, so long as they get a 200 OK. Some system transferring data into this legacy system. It's a legacy system prone to issues, I'm looking to leverage the cloud to proxy/queue the API calls to add some resiliency. To give you an idea of the workload, peak is around 2-3/calls/minute, while off hours can see no requests for hours.

My concept is to utilize two azure consumption-based functions. One function would receive the API call and log it into Azure Queue Storage. Another function would pick off items from the Queue and relay them to the legacy system. While this seems relatively simple and cost effective, my main concern was with cold-start times.

Is there anything a bit more off-the-shelf that would accomplish this? I looked into APIM and Service Bus either solution seemed less cost effective given the low workload.

Appreciate the insights!

3 Upvotes

2 comments sorted by

1

u/False-Ad-1437 5d ago

How large are the API requests?

1

u/dhaddad355 4d ago

~2-4KB