Похожие чаты

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

do you prefer?

35 ответов

26 просмотров

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

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

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

30500 за редактор? )
Владимир
47
any reference of this implementation?
BitBuddha
29
Ⓐrtto, [4/23/24 7:02 PM] Please explain more fully how it is not working exactly, and what are the steps you are taking, and what error messages come or what happens. Ⓐrtto, ...
Ezza Kezza
2
sounds like people have lost their kaspa on tradeogre... does this mean tradeogre not trustworthy?
Ezza Kezza
15
Страшнейшая правда про списки ЦБ. С первых дней жизни P2P сферы, молодые человеки, начитавшись законодательной базы и "внутренних" документов, решили, что им противостоит сер...
Foxcool
3
Недавно Google Project Zero нашёл багу в SQLite с помощью LLM, о чём достаточно было шумно в определённых интернетах, которые сопровождались рассказами, что скоро всех "ибешни...
Alex Sherbakov
5
So much speculation in the last week. So much volatility in price. This is because Hedera has a GC that isn't using the network it's governing. Why aren't people asking why a...
Summit Seeker R
8
Anyone else having this error when trying to make transactions?
Datzel
11
Question: How viable is it to use Anvil as the backend infrastructure for managing a TradFi portfolio, while integrating Flexa for instant liquidity and payment solutions? Cou...
Kevin
2
вы делали что-то подобное и как? может есть либы готовые? увидел картинку нокода, где всё линиями соединено и стало интересно попробовать то же в ddl на lua сделать. решил с ч...
Victor
8
Карта сайта