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

Concurrency #1

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Concurrency #1

wants to merge 6 commits into from

Conversation

kpacha
Copy link

@kpacha kpacha commented Aug 13, 2015

Create several workers and delegate the work to them

Notice this is a WIP, do not merge yet

FEATURES

  • Configurable number of workers
  • The adapter keeps the number of workers
  • One client connection per worker
  • Cancel suscription and close the connection when a worker dies

TODO

  • create a template object per template file and reuse them
  • write templates on temporal files and move them after updating, so changes are atomic

@kpacha
Copy link
Author

kpacha commented Aug 13, 2015

It does not include a buffer because it isn't required

@phamhongviet
Copy link
Owner

What will happen when template files change?

@kpacha
Copy link
Author

kpacha commented Aug 13, 2015

Every file could be monitored by its related 'template_manager' and every 'template_manager' would be responsible for updating the related template object.

@kpacha
Copy link
Author

kpacha commented Aug 14, 2015

Every worker running on its own goroutine

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

Successfully merging this pull request may close these issues.

2 participants