#1 2016-02-29 11:42:55

cybertrace
Member
Registered: 2016-02-29
Posts: 15

SOA/ORM project with mormot

Hello Community !

I am a new user of this forum and I have a very sofisticated application to make. I am new in this ORM/SOA and first I tried to to something with datasnap. This was not satisfying for a big amount of clients  Through my investigations in the net I found a report from Roberto Schneiders (Part 1 https://robertocschneiders.wordpress.co … ity-tests/ and part  2 https://robertocschneiders.wordpress.co … s-part-2/) which confirmed the problems from datasnap and so I found in this report also mOrMot as a base to work with. I have only very less knowledge from mOrMot - I tested some of the samples, but requirements for my plans to do the application are not sufficient to build a proper system.
Espacially the sample 31 (Chat Server - Client) would be good for starting with the callbacks to the Clients. But I do not need when a Client sends to the Server all others are receiving the same. I have changed the code so I am only sending from the Server to all clients. I've tried this and it works, but I noticed when I send a message to the Clients there is a greater delay when I send until it arrives on the Clients. Because I do not know the architecture of mORmot it is difficult to find this out.

My Project Usage :

I have a central with a database Server and some local Clients. They are using a MySQL Server database on a Server machine. Now I will change the architecture  and  put a ORM/SOA application between the database Server and the Clients local. Also now we will support Clients in the Internet (PCs) and they are then also connected to this ORM/SOA application from outside. The count of clients is variable and can be up to 2000 clients.

1.
All Clients should have a registered callback (or other function) what enables the ORM/SOA application to send them orders with a very less timedelay over the Internet, the internetconnection from the Client should also work over Firewalls and Gateways in some companies
I have tried sample 31 and this works in Basic, but if this works successfully with my requriements I do not know and I am also not able to verify this.

2.
All Clients are sending Information over the orders after they executed and finished them -> not time critical

3.
All Clients are receiving Parameters from the Server -> less timecritical, not all Clients together are receiving, mostly selected Clients are updated,but also it could be that all are updated.

4.
The amount of data sended and received is about 1 kB max. for one Client.

5.
In the Client a Interprocess communication happens to place the orders (Tradingsystem MT4 Tradingterminal). The Clients sends and receives Information and Forward this to the Server over the Internet or a local Connection.

6.
The Internet Connection to the Server should be easy to establish, it should also work over Gateways.

CONCLUSION :

Dear members, is anyone of you guys so kind to make me a short example to start for Server and Client what fits in my requirements and assist me later sometimes with the implementation.

I need a good and stable structure to start with this project.

My question also :  where can I post a pdf with my structure and som sourcecode ?



Thanks in advance to the community !!

Cybertrace

my email :  cybertrace@liwest.at

Offline

#2 2016-02-29 12:51:22

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

Re: SOA/ORM project with mormot

In short:

Use real-time callbacks using WebSockets.
See http://synopse.info/files/html/Synopse% … l#TITL_149
It would work over most firewalls and gateways - unless there is a HTTP proxy which breaks the WebSockets protocol.
It is very reliable, and used on production.

Use an SOA client/server architecture, with callbacks are interface.
Start from sample 31.
We are finalizing some units to easily implement strong client/server services writing, with remote monitoring and administration.
See http://synopse.info/files/html/api-1.18/mORMotDDD.html http://synopse.info/files/html/api-1.18 … tings.html http://synopse.info/files/html/api-1.18 … aApps.html
It is currently used in production, classes and units are fully documented, but there is no "starter" sample yet...
I would like to add a wizard, or a command-line tool to initialize a full mORMot server, with SOA + ORM, easily.
Any input is welcome!

Offline

#3 2016-02-29 13:39:47

cybertrace
Member
Registered: 2016-02-29
Posts: 15

Re: SOA/ORM project with mormot

Hello AB !

A wizard would be great to start easely.
Delphi XE.. has this wizard to start with datasnap.


What do you mean about the performance of my Project, can mormot handle the communication ?

Best reagrds

cybertrace

Offline

#4 2016-02-29 15:13:12

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

Re: SOA/ORM project with mormot

About performance, mORMot is far ahead of your needs.
Our WebSockets protocol is very optimized, in terms of performance, when working between Delphi client/server.

Offline

Board footer

Powered by FluxBB