#1 Re: Other components » advice me, please » 2015-09-25 12:04:35

It works.
ab, merci beaucoup pour le code source soigné.

#2 Re: Other components » advice me, please » 2015-09-25 10:13:18

ab wrote:

1. Yes. But you can also create several THttpApiServer instances, pointing to the same Process method.

And I can also call THttpApiServer.Clone(32), right?

#3 Re: Other components » advice me, please » 2015-09-24 14:46:23

ab, looking on "09 - HttpApi web server", "13 - StandAlone JSON SQL server" and If I right understood it so far.
If I'll use only THttpApiServer, I'll have only one working thread (main process) and 10,000 waiting http(s) connections.
If I need thread pool, I should use TSQLHttpServer. And these 10,000 connections will be processed by 32 (by default) threads and each of them has 1 db session.
Waiting queue is managed by os (in "http.sys").
1. Is it right?
2. Is it possible to control max count of waiting connections (10,000)?
3. What kind of TSQLRestServer should I use in TSQLHttpServer.Create if i want (at least now) custom process requests and responces content?

#4 Re: Other components » advice me, please » 2015-09-24 13:41:22

ab wrote:

Leave the default HTTP ThreadPool to its default 32, and use TSQLDBConnectionProperties.Execute or NewThreadSafeStatementPrepared to have one connection per thread.

Then, since http.sys is IOCP based, you could have 10,0000 HTTP connections, working on the 32 threads.

And what about THttpApiServer? I didn't see any thread pool in this class.

#5 Re: Other components » advice me, please » 2015-09-24 09:23:12

ab, thanks for fast responce.
Just one clarification.
Is it possible to have 100 http connection (thread pool) at front-end and 10 db session (db session pool) at back-end?
Or only 100 -> 1 (main) or 100 -> 100 (per each)?

#6 Other components » advice me, please » 2015-09-24 07:27:50

difr
Replies: 13

Hello!
Quick solution needed, as usual.
Please, advice me about using parts of mORMot Framework for building of lightweight https server.
At front-end it should have https connection pool, at back-end - oracledb session pool.
Looks like this great framework meets all my needs and even much more.
Can you confirm it, please?
And I would be very grateful for some hints and/or samples for start.

Board footer

Powered by FluxBB