Похожие чаты

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

do you prefer?

35 ответов

12 просмотров

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

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

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

А еще в перле можно уже @arr1 + @arr2?
Sergei Zhmylove
53
я не магистр хаскеля, но разве не может лейзи тип конвертнуться в не-лейзи запросив вычисление содержимого прям при инициализации?
deadgnom32 λ madao
100
Подскажите, где смотреть результат выполнения программы? Код: ;.686 ;Система команд процессора 686 ;.MODEL FLAT,stdcall ;Модель памяти плоская, станда...
Егор Анелькин
5
I arrived here after a Chico Crypto show highlighted the project & the Team - the fact that the Team had a long history of successfully working with household names gave me e...
Banter is Bullish
1
Привет всем. появился вопрос. Разрабатываю сайт, в данный момент он запущен. Хостинг beget. Добавляю на сайт яндекс метрику с помощью полей client-settings (взято отсюда http...
Andrew
2
Добрый день подскажите пожалуйста может кто то сталкивался с ошибками Sentry 22.10.0 развернутым из helm чарт в Kubernetes? Изначально 3 дня назад очень стало много событий ух...
Tire4 Finist Devops
1
;.686 ;Система команд процессора 686 ;.MODEL FLAT,stdcall ;Модель памяти плоская, стандартный ;вызов процедуры ;option casemap:no...
Егор Анелькин
1
Почему у макбука экран не сенсорный?
✨ Anatolii Cherednichenko
28
почому оно не работает?
Vi Chapmann Chapmann
19
It's unfortunate that the "Then why are you here" or "lol you must've bought high" mantras always come up. I already tried bringing up this subject in the price channel but si...
Leroy Gerrits
4
Карта сайта