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

Add /count API endpoint #14

Open
soaxelbrooke opened this issue May 6, 2019 · 2 comments
Open

Add /count API endpoint #14

soaxelbrooke opened this issue May 6, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@soaxelbrooke
Copy link
Owner

While counting is best done in bulk, its pretty clear there are instances where you'd prefer services to be interfacing with phrase over HTTP instead of relying on running a cron job to keep counts up to date.

@soaxelbrooke soaxelbrooke added the enhancement New feature or request label May 6, 2019
@soaxelbrooke soaxelbrooke self-assigned this May 6, 2019
@soaxelbrooke
Copy link
Owner Author

One big question: persistence - we want to make sure that counting is as atomic as possible. But, reading a whole partition and then writing it so you can count the document "love it" would be a waste. Perhaps we can keep a WAL of sorts in a sqlite database?

@soaxelbrooke
Copy link
Owner Author

Let's not overdo it for now - we can leave the batching to the client for now, and address it if its brought up later.

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

No branches or pull requests

1 participant