acrolink
Storing transient data for chat sessions
For an AI driven chatbot over channels I want to store some transient data. There will be 10’s of thousands of concurrent users. Will be hosted on AWS using either EB, ECR or EKS, i.e. using multiple machines/pods. What will be the best method to store transient data for chat sessions? Store them simply in socket.assigns or using ElasticCache (Redis, Memcached, Valkey)?
Most Liked
christhekeele
ETS (Erlang Term Storage) is the go-to batteries-included for transient storage on the BEAM VM. I always recommend using it for any out-of-process transient storage until incompatible requirements reveal themselves and push you towards a more apt solution.
dimitarvp
dimitarvp
I see. Well, if you want to make full use of AWS and are not worried about vendor lock-in then ElasticCache seems like a very good option indeed.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #hex









