You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 !!!
The text was updated successfully, but these errors were encountered:
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 !!!
The text was updated successfully, but these errors were encountered: