In a greenfield web app we have already included Redis, but do not yet have a fixed solution for PubSub style messaging. We'd like to use Redis if possible, simply to limit the number of different services we're maintaining.
We expect our usage to be quite bursty (usage is UK only, so UK business hours, and is for various kinds of business reports that need producing once per quarter, but lots of them need producing in report week), so we are considering serverless functions (AWS lambda, possibly Google Cloud Platform) for the majority of the work.
As far as I can tell, Redis PubSub and Streams require the client to connect, subscribe, and stay on the line to receive messages/events. With the serverless style, this doesn't work so well. Google Cloud Platform's PubSub has "Push" subscriptions, where an HTTPS request is sent to specified endpoints when events happen. Does such a system exist within Redis? If not, could this be achieved with Lua scripts in Redis?
question from:
https://stackoverflow.com/questions/65935667/push-subscriptions-from-redis-pubsub-or-streams 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…