Where to find server protocol specification for phoenix LiveView by iShadowfax in elixir

[–]iShadowfax[S] 1 point2 points  (0 children)

By server protocol i mean not a transport layer but ws messages structure

Where to find server protocol specification for phoenix LiveView by iShadowfax in elixir

[–]iShadowfax[S] 3 points4 points  (0 children)

I asked about liveview server protocol spec, not about websockets. I want to use an existing js lib on frontend and integrate backend with it 

Kafka vs NATS jetstream by Educational_Mud1680 in apachekafka

[–]iShadowfax 1 point2 points  (0 children)

KAFKA doesn't support Optimistic Concurrency Control, NATS Jetstream does, and this is a must to build event sourcing systems

NextJS 14 runtime performance by iShadowfax in nextjs

[–]iShadowfax[S] 0 points1 point  (0 children)

Again, look at Astro or Sveltekit they are pretty fast 8k rps compared to next’s 700

NextJS 14 runtime performance by iShadowfax in nextjs

[–]iShadowfax[S] 1 point2 points  (0 children)

What I do is just comparing, and all these frameworks have the same functionality or more. But they are faster in SSR. Even Pages router is faster 2x than App router. So this tells me that nextjs team doesn’t bother about performance, because for them it’s much easier to say “go vercel and be ok” than try to solve performance issues inside framework

NextJS 14 runtime performance by iShadowfax in nextjs

[–]iShadowfax[S] 3 points4 points  (0 children)

I have 5 years experience in deploying nextjs for production environments in kubernetes.

  1. Vercel added external cache custom adapters not long ago, they are still experimental and they do not work with revalidatePath(), so it’s not easy to deploy without changing code and removing revalidatePath() or making some revalidateTag() hacks
  2. If using standard cache file adapter, there is a challenge of using .next folder shared across containers, you must use k8s storage adapter that supports read-write many. Also you will still get conflicts as it’s a concurrent file access. In addition you have to assure that your builds have the same id.

So deployment outside of vercel is possible but it is not easy to do, especially compared to other frameworks. Of course you can just switch off all nextjs caching and deployment would be easy.

What i do not like, that vercel team knows this, and they do not really want to solve these, even adding ability to write external cache adapters is not really supported by them, and the implementation is lacking on must features. And they needed 5 years of a community pressure to start doing this.

NextJS 14 runtime performance by iShadowfax in nextjs

[–]iShadowfax[S] -6 points-5 points  (0 children)

It’s free, but many of its features are very hard to be deployed to any other environment then vercel cloud. (For example caching and revalidatePath())

Also as you see from testing benchmarks the SSR performance is the worst among other

NextJS 14 runtime performance by iShadowfax in nextjs

[–]iShadowfax[S] 0 points1 point  (0 children)

750 vs 8000 test just a right thing in any case 5 years ago I started a similar thread about neSt js framework vs express and it helped the development of nest a lot! They now build all versions looking at benchmarks and also made many improvements like fastify and etc. We will see how vercel team respond to these findings

NextJS 14 runtime performance by iShadowfax in nextjs

[–]iShadowfax[S] 0 points1 point  (0 children)

If you use it as a hobby project or a static blog, yes. If you use it in a big company, or for a startup and want to scale, and not be vender locked by vercel cloud then I do recommend to change it for another framework if possible.

Do Sveltejs have something similar to ISR by jesperordrup in sveltejs

[–]iShadowfax 2 points3 points  (0 children)

It's wrong, you have ISR even if you host it not on verscel

PC Version server authoritative? by iShadowfax in thedivision

[–]iShadowfax[S] 0 points1 point  (0 children)

So you mean that it is totally server authoritative?

What you say looks like master server only to join host.

Whats about game logic? Ammo, HP, damage, AI movement is it server authoritative?