-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Unless you have very specific requirements that preclude this, you might want to run this task as a background job (e.g. Sidekiq worker) instead of as a rake task. This is a little bit of an opinion. There isn't one right way (indeed, that's one of the best things about Ruby). But in my career I've usually seen rake tasks used for things that need to be performed infrequently, and not as part of normal system operation. For things that need to be performed at regular intervals, and are part of the normal operation of the app, I usually see them set up as scheduled background jobs. You can use a background job gem (Sidekiq is wildly popular; Resque is another good one) and combine it with a scheduler (I'm personally a fan of the Clockwork gem but there are others out there).
Related posts
-
Croner – Cron for JavaScript and TypeScript
-
Should a cron process be a separate node instance? (With PM2)
-
Library for reliably running jobs
-
GitHub - Hexagon/croner: Trigger functions or evaluate cron expressions in JavaScript or TypeScript. No dependencies. Most features. Node. Deno. Bun. Browser.
-
Croner – Cron for JavaScript/TS Runtimes