Похожие чаты

Guys, single threaded or multiple threaded for web server? Whic one

do you prefer?

35 ответов

29 просмотров

worker-pooled and event-driven

This question is too simple to answer properly

Пользователь-61653 Автор вопроса
Thomas
worker-pooled and event-driven

I haven't heard that before!

Пользователь 61653
I haven't heard that before!

A single thread should be able to handle many concurrent connections, but multiple threads should be possible too

Thomas
worker-pooled and event-driven

would that be ok for a game server where there would be probably calculations too ?

Пользователь-61653 Автор вопроса
Пользователь-61653 Автор вопроса
Thomas
Answered right above your message lol

I hit the send button before I saw it.

Пользователь 61653
What about cpu intensive cases?

Are you aiming for benchmarks or for real world use cases at this point? Drogon-core and actix-core seem to be aiming for highest score in benchmarks, that doesn't really tell anything about real world use cases like game servers or cpu intensive tasks. These have different requirements and different opportunities for optimization

Пользователь-61653 Автор вопроса
Lukas
Are you aiming for benchmarks or for real world us...

You are right. But I chaned the topic. Forget about that.

Пользователь 61653
I haven't heard that before!

Mate, I'm sorry to say this, but you'll need to improve your OS knowledge before starting with your plan of coding a web framework.

Пользователь-61653 Автор вопроса
George Gavin
Mate, I'm sorry to say this, but you'll need to im...

It doesn't relate. Web dev is not a system dev. So it is not necessary to know that.

George Gavin
Mate, I'm sorry to say this, but you'll need to im...

Plus this. I don't really understand what you're trying to do. On one hand, you want to start an overly ambitious project to be the absolutely fasted ever, on the other hand you're lacking the very basic knowledge to even remotely get close

Пользователь 61653
It doesn't relate. Web dev is not a system dev. So...

By OS knowledge I mean the stuff about processes, threads, deadlocks, etc. I'm not talking about UNIX system programming or anything close for the matter.

Lukas
Simply not true

Well, kinda true but then it's not applicable here

George Gavin
By OS knowledge I mean the stuff about processes, ...

You can't go fast if you don't understand what's happening with the code you write

Пользователь-61653 Автор вопроса
Lukas
Creating a web server framework is not really web ...

Yeah, web development is HTML, CSS, JS, WebAssembly(new).

Пользователь 61653
Yeah, web development is HTML, CSS, JS, WebAssembl...

Yes. And creating a web server framework is none of that. The web server doesn't care if you're serving HTML, css or js. It just sends some text over http(s)

Пользователь-61653 Автор вопроса
Lukas
Yes. And creating a web server framework is none o...

Same applies to node (express.js or whatever) or go or c++ or python

Пользователь-61653 Автор вопроса
Пользователь-61653 Автор вопроса
Lukas
Same applies to node (express.js or whatever) or g...

I hate Express.js by the way. I use Fastify.js.

Пользователь-61653 Автор вопроса
Lukas
Congratulations

I didn't get that.

Пользователь 61653
And system programming.

If you're interested in reading books, I'd suggest "Operating System Concepts by Peter B Galvin"

Пользователь 61653
And system programming.

No, that's just how http works. The client requests a file and the server provides it. What content the file has is (mostly) irrelevant for the process and the server, that's up to the client to handle

Пользователь 61653
I didn't get that.

Congratulations, you missed the point of my message and the topic of this group. I don't care what nodejs framework you use

As far as async programming is concerned, found this piece very informative https://unixism.net/loti/async_intro.html

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта