certstream-server-go icon indicating copy to clipboard operation
certstream-server-go copied to clipboard

Add SQS / SNS Support

Open goliel opened this issue 1 year ago • 3 comments

Websockets are not very good when you want to process a lot of messages in a large pipeline due to the lack of consumers that can process the messages.

Would like to see some kind of SQS support, this way multiple consumers can subscribe and process the messages as scale out rather than scale up.

goliel avatar Mar 06 '24 11:03 goliel

This project was initially thought of as a 1:1 replacement for the original certstream server. I thought about implementing something like Kafka support myself, additionally to websockets.

I haven't worked with SNS / SQS yet so I can't say if that's something I'll consider adding. But I'll definitely have a look into it.

Cheers

d-Rickyy-b avatar Mar 06 '24 14:03 d-Rickyy-b

When I first found this repository I thought at first that having support for a queue (e.g SQS) would be useful.

However after giving this more though - maybe it would be better to prioritize adding support for storing the messages in an S3-compatible file store? Combining this with the out of the box feature to receive S3 events in SQS (guide here) it would also accomplish the goal of supporting SQS. GCP supports similar mechanism out of the box too.

Moreover supporting an S3-compatible store would allow also to easily query results using AWS Athena/Glue and GCP BigQuery.

alberts-s avatar Jun 16 '24 12:06 alberts-s

Well, I thought that having this feature could make it easier to implement other distributed message-queuing services like Kafka, which is also widely used. I'm not entirely sure though. I like the concept of uploading messages to S3, but I’d prefer a small script that reads the messages using Kafka and uploads them to S3 afterwards.

meinder-a avatar Sep 25 '24 15:09 meinder-a