Skip to content

Comment on Launch HN: Defer (YC W23) – Zero-infrastructure background jobs for Node.js

Comments

How do I test my jobs?

Is there a local runtime a-la miniflare?

Or do I have to deploy and then run my unit tests against your APIs?

Locally (without `DEFER_TOKEN` environment variable), your functions run synchronously, but apart from this, you get the same API behavior (arguments serialization, execution id, etc.).

This is fantastic! I was hoping it would "just work" and seems like it does! Unless I missed it I think the docs should explain this. It would definitely be a selling point for me compared with having to run a local server like with Temporal.

That was one of my questions too. Without a local execution for fallback there are all sorts of problems with this, especially in development.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.