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

Unable to change caching mode (Prod/Dev) in UI #269

Open
pyhedgehog opened this issue Jan 14, 2017 · 1 comment
Open

Unable to change caching mode (Prod/Dev) in UI #269

pyhedgehog opened this issue Jan 14, 2017 · 1 comment

Comments

@pyhedgehog
Copy link

Recent changes disabled access to selection of production/development mode.

@Marak
Copy link
Collaborator

Marak commented Jan 15, 2017

@pyhedgehog

You are correct, and this a problem that needs to be resolved.

During the major microcule refactor last year, all previous service source code fetching and caching logic was removed from hook.io core ( this is good ). We then implemented an intelligent cache for microservice source code with CouchDB2 and Redis for source code stored directly in hook.io as a string. This works great for service code stored directly on hook.io

The problem now is that by default, all remote source code sources ( gist and github repo ) are not being cached at all. This means slow performance for Github sources.

The solution is to resolve this issue first: stackvana/microcule#14. We can pass in the same redis cache provider that we do for rate limiter plugin ( should be easy to do ).

Then we need the UX. I'm not sure I like is the idea of Development and Production mode for services acting this way. Most users would end up forgetting to switch to Production mode.

We do need to implement the cache provider for Github sources, but I am still not 100% clear on how we'll surface that API to the user. I'm open to suggestions. If we can't think of anything better, we will go back to the previous API of having a mode dropdown for Development or Production.

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

2 participants