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

Implement Directory layer #66

Open
kirilltitov opened this issue Sep 10, 2020 · 2 comments
Open

Implement Directory layer #66

kirilltitov opened this issue Sep 10, 2020 · 2 comments

Comments

@kirilltitov
Copy link
Owner

That's an oof, because I don't really understand how to port it from Python or Go, because it utilizes [blocking, obviously] mutexes heavily, and it's not quite clear

  1. Why use them
  2. How to use them [in Swift-NIO context]

Appendix:

  1. High-level documentation: https://apple.github.io/foundationdb/developer-guide.html#directories
  2. Python implementation: https://github.com/apple/foundationdb/blob/master/bindings/python/fdb/directory_impl.py
  3. Go implementation: https://github.com/apple/foundationdb/blob/master/bindings/go/src/fdb/directory/allocator.go
@dimitribouniol
Copy link
Contributor

dimitribouniol commented Sep 10, 2020

  1. Why use them

It seems like the primary reason they would be used is so that if you have a large subspace prefix, that can be abstracted away to a short prefix instead via indirection.

@kirilltitov
Copy link
Owner Author

No, the question was about mutexes, not dictionary layer :)

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

No branches or pull requests

2 participants