Похожие чаты

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

do you prefer?

35 ответов

62 просмотра

worker-pooled and event-driven

This question is too simple to answer properly

Находчивый Глоссарий
I haven't heard that before!

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

Горящая Капуста
worker-pooled and event-driven

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

Находчивый Глоссарий
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

Находчивый Глоссарий
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.

Соляное Озеро
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.

Соляное Озеро
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

Находчивый Глоссарий
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.

Ванильная Капсула
Simply not true

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

Соляное Озеро
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

Находчивый Глоссарий
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)

Находчивый Глоссарий
And system programming.

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

Находчивый Глоссарий
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

Находчивый Глоссарий
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

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

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

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Мелодичный Сырник
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Фетровый Лингвист
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Настойчивый Кварк
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...
Льдистая Лужица
2
30500 за редактор? )
Замшевый Алхимик
47
а через ESC-код ?
Виноградная Притча
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...
Звенящий Циферблат
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Туманный Ларец
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Длинный Минерал
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Тягучая Ракушка
11
Карта сайта