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

Share tasks between all the instances #9

Open
Alma-media opened this issue Feb 24, 2018 · 1 comment
Open

Share tasks between all the instances #9

Alma-media opened this issue Feb 24, 2018 · 1 comment

Comments

@Alma-media
Copy link
Collaborator

Design and implement a mechanism to share async request statuses and results between different application instances: consumer should be able to start the job with one application instance and retrieve from any other (Timap can be used only for single instance).

@Alma-media
Copy link
Collaborator Author

configure storage outside middleware

type Map interface{
  Load(string) interface{}
  Store(string, interface{})
  Delete(string)
}

func AsyncRequest(storage Map, reqTimeout time.Duration) Middleware { ... }

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

No branches or pull requests

1 participant