nitrojs / nitro

Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
https://nitro.build
MIT License
6.16k stars 507 forks source link

wip: deno server preset use parallel server mechanism #2804

Open yooneskh opened 1 week ago

yooneskh commented 1 week ago

๐Ÿ”— Linked issue

Fixes #2803

โ“ Type of change

๐Ÿ“š Description

Resolves #2803

Changes in this PR at this moment will allow using the parallel server in Deno 2. I have some questions to fully integrate this feature which I would greatly appreciate if you could answer.

๐Ÿ“ Checklist

pi0 commented 1 week ago

Thank you for PR. I think we might make a deno-cluster preset to have this alternative preset. Running multiple instances have consequences also (for example a migration task should only run in first instance)

yooneskh commented 1 week ago

@pi0 That makes sense, thank you. Are you ok with me duplicating the deno-server preset for this?

pi0 commented 1 week ago

Sure you can add it seperately (for preset in same file new export + new runtime entry)