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

casbin-raft implementation #114

Open
GopherJ opened this issue Apr 15, 2020 · 4 comments
Open

casbin-raft implementation #114

GopherJ opened this issue Apr 15, 2020 · 4 comments
Labels
enhancement New feature or request
Milestone

Comments

@GopherJ
Copy link
Member

GopherJ commented Apr 15, 2020

I don't really like the idea of watchers because it's buggy and heavy, image when one enforcer AddPolicy, the others need to reload all the policies from DB.....

we should find other solutions.

See also: casbin/casbin#421

@GopherJ
Copy link
Member Author

GopherJ commented Apr 15, 2020

On the same machine we don't need multiple enforcers, we just need to wrap enforcer inside Arc<RwLock>.

We only need this when there are multiple enforcers on different machines and they need to synchronize each other.

@GopherJ GopherJ changed the title implementation details on distributed casbin enforcers Decision of implementation details on distributed casbin enforcers Apr 15, 2020
@GopherJ
Copy link
Member Author

GopherJ commented Apr 15, 2020

Not sure if: https://github.com/railgun-rs/actix-raft helps

@GopherJ GopherJ changed the title Decision of implementation details on distributed casbin enforcers Decision of implementation details on distributed casbin Apr 15, 2020
@GopherJ
Copy link
Member Author

GopherJ commented Apr 18, 2020

It seems that we can try to use actix-raft first, here an example project I found:

https://github.com/oronsh/raftor

@GopherJ
Copy link
Member Author

GopherJ commented Apr 18, 2020

Let's start the work from here: https://github.com/casbin-rs/casbin-raft and try to implement it step by step so that casbin scales well

@GopherJ GopherJ changed the title Decision of implementation details on distributed casbin casbin-raft implementation May 3, 2020
@GopherJ GopherJ pinned this issue May 3, 2020
@GopherJ GopherJ added this to the v2.0.0 milestone May 9, 2020
@GopherJ GopherJ added the enhancement New feature or request label May 9, 2020
@hsluoyz hsluoyz unpinned this issue Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant