-
Notifications
You must be signed in to change notification settings - Fork 10
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
Node syncing #4
Comments
사실 지금은 생각하지 않아도 되지만, 추후에 필요할것이라고 생각함. |
Sync는 정확히는 인덱스 / 캐시 구축입니다. 가장 필요한곳은 Re-Encryption Key Retrieval ( LocalDB는 캐시 및 국소적 인덱스기때문에 LocalDB를 공유하는건 좋은 디자인은 아닐수도 있습니다. |
캐시 수준이지만 registry가 생긴 후 많은 기간이 지났을 경우를 생각해본다면 필요할 수도 있습니다. |
캐시는 서버 / 사용자마다 히트율이나 TTL이 전부 다르기 때문에 공유하더라도 이점이 없어요. 또한 Key-Value 형태의 캐시의 경우 온디맨드로 필요할때마다 구축하는게 더 빠르고요. 그럼에도 불구하고 풀블록을 스캔해서 캐시를 구축해야 하는 컴포넌트가 있나요? 있다면 블록데이터처럼 공유하는게 가능할것같은데 |
일단 mapping으로 id => struct의 형식으로 관리되는 모든 컴포넌트들은 캐시가 필요하겠죠, ethereum에서는 그 관리되는 struct의 내부를 query할 수 없습니다. 예를 들어 특정 app에 속한 모든 collection을 찾고자 한다면 일단 collection registry에 있는 모든 collection들을 받아서 그 appId가 있는지 확인을 해야겠죠. |
sync가 필요한 부분 (contract <-> localdb)
생각해봐야할 점은
The text was updated successfully, but these errors were encountered: