Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A real world example for elixir app #57

Open
jaybe78 opened this issue Nov 23, 2024 · 0 comments
Open

A real world example for elixir app #57

jaybe78 opened this issue Nov 23, 2024 · 0 comments

Comments

@jaybe78
Copy link

jaybe78 commented Nov 23, 2024

Hello @arcusfelis

I’m currently working on an api in elixir where I need to temporarily logged in users in a cluster of nodes. This library exactly matches my use case because I’ll have an era table running on each node and I don’t want to have to broadcast changes to one ets table across all nodes.

first of all I would like to know if it’s production ready and if you could provide an example in a gen server for example.

also you don’t provide an example that demonstrates the use of handle_conflict.

it would be nice if you could do that as well.
I intend to store users id as key and one of the value will be a timestamp indicating the last time they were active.

so during a merge I want users id with latest timestamp to win in case there is a conflict.

By the way, I can see c'est only provides a way to insert or delete. Let's say I want to update the timestamp of a user? Would that be replicated across the cluster ?

thanks a lot for your help and great work !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant