DEV Community

Cover image for Is This a Good Way to Reduce Operational Costs?
LinceMathew
LinceMathew

Posted on

3 1 1 1 1

Is This a Good Way to Reduce Operational Costs?

I'm implementing a publisher-subscriber mechanism for a feature in our product, LiveAPI.

LiveAPI is an auto API documentation tool that generates API docs simply by connecting to a repository.

To enhance security and build trust, we've designed it so that interactions and operations with the repository happen directly on the client’s machine—for instance, their own AWS EC2 instance.

For communication between the client’s machine and the LiveAPI backend, we’ve been evaluating a few approaches:

AWS SNS: While this works, it requires additional setup from the customer's side, like opening ports on their machine to enable HTTP endpoint connections, which adds complexity.

AWS SNS

SNS + SQS: This reduces some of the complexity but comes with higher infrastructure costs and a more complicated setup process.

SNS + SQS

Redis Pub/Sub: This seems to be a promising option for our use case. It offers low latency, minimal maintenance, and is relatively simple to implement.

Redis Pub/Sub

We’re currently diving deeper into Redis Pub/Sub to ensure it meets all our requirements. If you’re curious, here’s a Redis Pub/Sub documentation link for reference.

I’ll share more insights and updates on this as we progress. Stay tuned!

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay