Gabryel lessa - Back-end Developer Challenge#189
Open
GabryelLessa wants to merge 13 commits intodynamox-s-a:mainfrom
Open
Gabryel lessa - Back-end Developer Challenge#189GabryelLessa wants to merge 13 commits intodynamox-s-a:mainfrom
GabryelLessa wants to merge 13 commits intodynamox-s-a:mainfrom
Conversation
added 13 commits
March 4, 2026 21:17
- requirements.txt with fastapi, sqlalchemy, pydantic, pytest, locust - .env.example with default sqlite url - .gitignore
composite index on (series_id, timestamp) for faster range queries
bulk insert data points on create, composite index query on get_data_points
store, retrieve, delete, count, list, get_metrics _compute_metrics is a module-level function (no reason to be a method)
latency middleware logging requests > 350ms global exception handler to avoid leaking stack traces
unit tests mock the repo layer, integration tests use in-memory sqlite conftest wires up the async client with db override
two methods: linear regression and holt-winters double exponential smoothing
auto mode picks the best one based on holdout RMSE (last 20% of data)
falls back to pure numpy if statsmodels isn't available
added PredictRequest/PredictOut schemas, predict() on service,
POST /{id}/predict endpoint and unit tests
least_conn balancing, rate limiting (100r/s per IP), keepalive upstream docker-compose spins up nginx + api1/2/3 all sharing the same sqlite volume
3 user profiles: Writer, Reader, Cleanup SLO check on exit: p95 < 350ms and error rate < 1%
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.