#1 2022-05-21 14:35:59

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

New Async HTTP/WebSocket Server on mORMot 2

The HTTP server is one main part of any SOA/REST service, by design.
It is the main entry point of all incoming requests. So it should better be stable and efficient. And should be able to scale in the future, if needed.

server.jpg

There have always been several HTTP servers in mORMot. You can use the HTTP server class you need.
In mORMot 2, we added two new server classes, one for publishing over HTTP, another able to upgrade to WebSockets. The main difference is that they are fully event-driven, so their thread pool is able to scale with thousands of concurrent connections, with a fixed number of threads. It fixes the limitations of previous our socket server.

This is the forum discussion thread for our blog post:
https://blog.synopse.info/?post/2022/05 … n-mORMot-2

Offline

#2 2022-05-21 17:53:58

Prometeus
Member
From: USA
Registered: 2020-11-20
Posts: 46

Re: New Async HTTP/WebSocket Server on mORMot 2

Thank you, Ab, for the dedication and excellence of your framework! This article will help many who are just starting to understand this part of the powerful mORMot!

Offline

#3 2022-05-22 06:12:20

pvn0
Member
From: Slovenia
Registered: 2018-02-12
Posts: 211

Re: New Async HTTP/WebSocket Server on mORMot 2

Looking forward to testing it out, cheers.

Offline

#4 2022-05-26 08:22:29

Leslie7
Member
Registered: 2015-06-25
Posts: 248

Re: New Async HTTP/WebSocket Server on mORMot 2

Wow, congrats! Great addition to the framework.

Offline

#5 2022-05-26 10:40:26

xalo
Member
Registered: 2016-09-22
Posts: 32

Re: New Async HTTP/WebSocket Server on mORMot 2

Amazing!!!
Many many thanks Arnaud!

Offline

#6 2022-05-26 11:26:37

squirrel
Member
Registered: 2015-08-13
Posts: 155

Re: New Async HTTP/WebSocket Server on mORMot 2

Thanks Arnaud.  This is very exciting and must have taken you a lòt of time! 
So much appreciated.  It is a very useful expansion of the framework.
Can't wait to get my hands on the examples and start playing with this.

Offline

#7 2022-06-19 14:12:29

snakegao
Member
Registered: 2017-06-22
Posts: 21

Re: New Async HTTP/WebSocket Server on mORMot 2

Who share Any examples about this? thx

Offline

#8 2022-06-20 06:34:33

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: New Async HTTP/WebSocket Server on mORMot 2

For instance https://github.com/synopse/mORMot2/tree … server-raw

And most other samples in the https://github.com/synopse/mORMot2/tree/master/ex folder do have a HTTP server involved.

Offline

Board footer

Powered by FluxBB