frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: How I built a cron job service to advance myself in Go and worker pools

https://tickstem.dev/
2•m_barsukou•1h ago
Hi, Guys, For a long time i've been thinking to advance myself in Go but there's been no proper idea to showcase that. I thought - maybe one could leverage from the fact that Go should be very performant in terms of API-based solutions and tools.

And especially i wanted to make sure that Go's goroutines can do nicely some fan-out things, for example, getting request, logging, publishing event, without notable performance degradation.

I had quite some experience in AWS, with serverless architecture in particular. And there are basically no other option for scheduling except for EventBridge, which has a handsome free tier though. But what if you are not within the AWS infra, because the infra itself could be costly, especially after they removed the "12-months trial" thingy.

So, i thought something like cron-as-a-service could be good starting point.

Decided to take a straightforward stack: Go API server, Postgres, Redis as both job queue and cache, all running on a single €5/month Hetzner VPS behind Caddy.

I read that it's possible to use Redis as a queue. Thus, wanted to try this out as well — job queue via LPUSH/BRPOP and API key cache with a 5-minute TTL, which cuts out a number of Postgres calls on every authenticated request.

To validate the performance story, I ran a benchmark from within Europe — 10,000 requests, 100 concurrent, against the live API:

Requests/sec: 621 Avg latency: 158ms (network-dominated — server is on Hetzner Germany) p99: 442ms Fastest: 84ms

Most of that latency is the round trip across Europe. The actual server processing time - Go handler + local Postgres query - takes much less. But still - this is for a very basic Hetzner VPS instance.

Would love to get any feedback — especially on the scheduler design and whether the worker pool approach could handle real load.

Comments

m_barsukou•5m ago
In the end, the scheduler uses a pool of goroutines and a queue based on Redis BRPOP vs LPUSH

Rust-coreutils – Program Security Assesment [pdf]

https://github.com/Zellic/publications/blob/master/uutils%20coreutils%20-%20Zellic%20Audit%20Repo...
1•delamon•22s ago•1 comments

Build Your Own Trust Chain

https://blog.certisfy.com/2026/04/build-your-own-trust-chain.html
1•Edmond•40s ago•0 comments

Google plans to invest up to $40B in Anthropic

https://www.reuters.com/business/google-plans-invest-up-40-billion-anthropic-bloomberg-news-repor...
1•wslh•1m ago•0 comments

The Atlas of AI Interaction Design

https://ai-interaction.com/
1•laurex•1m ago•0 comments

Firebird Web Client – open-source, browser-based IDE for Firebird databases

https://github.com/ZlatanOmerovic/firebird-web-client
1•mariuz•3m ago•0 comments

Age checks could turn internet into an ID checkpoint, complains Proton CEO

https://www.theregister.com/2026/04/23/proton_ceo_age_checks_id_checkpoint/
1•Bender•4m ago•1 comments

Ask HN: Any Niantic engineers or staff here who can help me?

1•jedberg•4m ago•0 comments

Tell HN: Anthropic won't reset usage limits for those who downgraded

1•vintagedave•4m ago•0 comments

Designing a Memory System for LLM-Based Agents

https://zby.github.io/commonplace/notes/designing-agent-memory-systems/
1•thomasweiser•4m ago•0 comments

Weak security means attackers could disable all of a city's public EV chargers

https://www.theregister.com/2026/04/24/rentable_iot_security_flaws/
4•Bender•4m ago•0 comments

Intel Binary Optimization: Worth it for the few?

https://www.lttlabs.com/articles/2026/04/24/intel-binary-optimization-worth-it
2•LabsLucas•5m ago•1 comments

Use of AI in Indian elections (2026)

https://www.channelnewsasia.com/asia/india-state-elections-ai-use-campaigning-6063751
2•debarshri•6m ago•0 comments

Show HN: Rook, a macOS notes app for developers

2•maryamtb•7m ago•0 comments

Plants Can Hear the Sound of Falling Rain

https://nautil.us/plants-can-hear-the-sound-of-falling-rain-1280186
2•Brajeshwar•7m ago•0 comments

As electric aspirations fade, Porsche sells its stake in Bugatti

https://arstechnica.com/cars/2026/04/as-electric-aspirations-fade-porsche-sells-its-stake-in-buga...
2•Bender•7m ago•0 comments

Styxx – text-only drift detector 0.916 AUC beats hidden-state baseline

https://github.com/fathom-lab/styxx
2•fathomlab•7m ago•0 comments

StreamComments lets you read and write comments while watching Netflix

https://chromewebstore.google.com/detail/streamcomments/bjpolkbchhpfmmiljggomjpojhigkebg
2•sandebert•14m ago•0 comments

Machine learning& gut microbiome pathway analysis in Alzheimer's risk prediction

https://alz-journals.onlinelibrary.wiley.com/doi/10.1002/dad2.70340
2•bookofjoe•15m ago•0 comments

SDL Now Supports DOS

https://github.com/libsdl-org/SDL/pull/15377
2•Jayschwa•15m ago•0 comments

Show HN: MR Links – Inline link references for Marginal Revolution blog posts

https://github.com/donchuru/mr-links
2•nanfinitum•16m ago•0 comments

Show HN: Turn speech into text anywhere via hotkey (runs on Intel NPU, no cloud)

https://github.com/anubhavgupta/whisper-npu
2•anubhav200•17m ago•4 comments

I Turned the Game Boy Color into a Watch

https://www.youtube.com/watch?v=gTUg_NePXy8
2•mehackernewsacc•17m ago•0 comments

Cloud Functions in Firebase now supports Dart as an experimental feature

https://twitter.com/Firebase/status/2047405653879070917
2•nostromoWOWWOW•17m ago•0 comments

Diatec, known for its mechanical keyboard brand FILCO, has ceased operations

https://gigazine.net/gsc_news/en/20260424-filco-diatec/
3•gslin•18m ago•0 comments

Firefox Has Integrated Brave's Adblock Engine

https://itsfoss.com/news/firefox-ships-brave-adblock-engine/
3•eaf7e281•19m ago•0 comments

ReactGhost: Four locations of an unguarded property lookup in React Flight

https://reactghost.com/
2•cybrdude•21m ago•0 comments

Beware Software Brain

https://anderegg.ca/2026/04/23/beware-software-brain
2•Brajeshwar•22m ago•0 comments

Show HN: #1 On This Day

https://onthisday-theta.vercel.app
3•starzmustdie•23m ago•1 comments

Phantom: Web Automation Without a Browser

https://saadnaveed.com/writing/phantom-web-automation-without-a-browser/
2•saadn92•27m ago•0 comments

We are our own worst enemies

https://www.ufried.com/blog/worst_enemies/
3•cdrnsf•28m ago•0 comments