I've been wanting to implement a mobile app using a complete serverless architecture for some time now and finally started looking into the details. So far, I've discovered that AWS offers most of the services that would be required for such a setup (API Gateway, Cognito, Lambda, DynamoDB, SQS, etc.), but I've yet to solve one (possibly theoretical) issue; event sourcing.
Since (historical) data is becoming more and more valuable these days, it's very important (in my humble opinion) to store historical data about your users. Current event sourcing offerings such as Akka Persistence achieve this goal by only persisting the events to a database and keeping the current state in memory (and saving snapshots to a database, etc.).
My problem with this, is that I don't have the ability to store such a state in memory since my Lambda functions terminate after their single purpose has been fulfilled. What my question boils down to, is there a framework currently out there that would support event sourcing (on Java) that saves the current state in something like ElastiCache (Redis). Since I have a lot of experience with Akka, is this something Persistence can already do? Is it worth chasing event sourcing in combination with a serverless backend (at this time) or is it simply not yet the right time this?
I haven't been able to find much in the Akka Persistence docs as of yet about this (possible non) issue. Please give me suggestions as to what I might have missed in my mission to a serverless universe; I'm still learning, as we all are.