Is AWS Lambda a Good Fit for Managing Payment Flows?

0
10
Asked By MightyMocha22 On

I'm building a platform that requires holding a customer's card for about three days before a booking begins. Our backend is hosted on ECS, and we're considering using EventBridge to trigger jobs that will automatically place this hold and update our database. Additionally, we want to set up another job for retrying any failed payments after some time.

We're debating between AWS Lambda and Fargate tasks for this process. It seems like Lambda might be better since the tasks are short-lived, and it has a faster cold start time. However, I'm curious whether Lambda is commonly used for critical functions like payment processing or if it's mainly for less important tasks. Any thoughts?

4 Answers

Answered By CraftyCoder12 On

It can fit well, but since you're fully on ECS, deploying a task there might be quicker than setting up Lambda for just one new function. Make sure to weigh those deployment times against your overall architecture.

Answered By TechieTurtle95 On

Absolutely! Lambda is highly reliable and quick. We actually use it for integrating with our payment processor, and it's been 100% effective without needing any server management.

Answered By ChillCoder99 On

Yes, Lambda can do it, but consider how long it takes to get responses from the bank. You don’t want to end up paying for idle time while waiting. If you need to manage transaction states efficiently, think about using a database for state management and retries. SQS might be a better fit for managing failures alongside Lambda.

Answered By SunnySky78 On

Definitely, Lambda is reliable for handling payment flows! Just remember to incorporate queues and Dead Letter Queues (DLQs) for any failed processes to avoid losing data.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.