-
Notifications
You must be signed in to change notification settings - Fork 42
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
Generalise sync mechanism #141
Comments
@chrizandr I haven't completely understood what has to been done. Should it be refactored by REST over Sockets? |
@chrizandr currently the hydrus uses a socket functionality as implemented by @Guttz in his pull request #123, so I thing for making it generic we will require something like a generic Resource URIs instead of sockets so that we can communicate with them and maitain a table like structure to keep the records of sync updates.
|
sockets are only used for the synchronisation mechanism. Standard REST uses HTTP requests. As explained multiple times, there are two separate subsystems in place:
we want to keep this setup, so any change to this is not required. |
@Mec-iS so as given by @chrizandr
Doesn't the expected behaviour requires to remove sockets since they won;t work with REST based Hydra Server, so can we include some sort of caching to reduce the request! |
No. it implies adding HTTP requests when the server is not hydrus. In the case the server is not hydrus (but any other standard implementation), every time some data is needed in the agent it should issue a request to the server. |
So, how do you propose to generalize the mechanism! @Mec-iS , I mean a rough idea ! |
the sync mechanism for a non-hydrus server is simply requesting data via an HTTP request everytime is needed. So we should have code in the agent that finds out if the server is hydrus and switch between two modes:
In this last case the behaviour is exactly the one for Heracles.ts |
@Mec-iS Thanks a lot! I got it how will we generalize the mechanicms now! |
Has this issue been resolved ? |
I'm submitting a
Current Behaviour:
Right now the agent uses sockets to sync itself with a hydrus server.
Expected Behaviour:
This will not work with a purely REST based Hydra server. We need to make the agent generic to work with non-hydrus based Hydra servers.
Steps to reproduce:
Do you want to work on this issue?
The text was updated successfully, but these errors were encountered: