Re:Launch HN: Defer (YC W23) – Zero-infrastructure backgroun...
by brap on Friday March 10, 2023 @12:44PM
(#35098027)
I see, makes perfect sense then. I would clarify that in the example (maybe add another snippet for querying the status).
If your friend is open for business, maybe give them a shoutout ;)
Re:Launch HN: Defer (YC W23) – Zero-infrastructure backgroun...
by gearnode on Friday March 10, 2023 @01:01PM
(#35098283)
> I see, makes perfect sense then. I would clarify that in the example (maybe add another snippet for querying the status).
It is true that we don't elaborate on this point on our landing page. We will take that into consideration, thanks.
> If your friend is open for business, maybe give them a shoutout ;)
Again, glad you like his work! He's not available at the moment, but we will stay in touch :)
Re:Launch HN: Defer (YC W23) – Zero-infrastructure backgroun...
by bayesian_horse on Saturday March 11, 2023 @08:04AM
(#35107967)
That got me stuck too and it wasn't obvious.
I used to use Celery a lot and find Hangfire lacking. To get the same value out of Defer, you'd need to "listen" to those handles.
And listening may actually mean writing another local background job...
As you suggest, the API returns right away with a pointer the user can later poll to get the function result. Also, using `await` ensures the function is enqueued on our system.
> Side note: I like this type of web design, is it an in-house job or did you hire someone external?
Happy to hear this! We are working with a friend who is a professional designer.