#1 2016-08-02 10:46:14

danny
Member
Registered: 2016-08-02
Posts: 13

Start with mORMot Framework for specific project

Hello everyone,

I am writing some small project client-server and I want use mORMot...
I would be grateful for any tips as I can started my work...

assumptions project:
Client (windows):
1. Send text by the Timer to the server on the another place (VPS windows probably) every 5 minutes.
2. Receive callback from the server.

Server (windows VPS?)
1. Receive messages from Client every 5 minutes and save it to the database for example SQLite.
2. Send callback to the Client (some message).

important information:
I want to have one server and up to 100 clients...

Questions.
1. I started discovering mormot from demo sample - 14 - Interface based services - there is good sample for my project?
2. How is the best way to save messages from Server to database - use firedac or mormot to save to sqlite - which sample show my this possibility?

thanks!

Offline

#2 2016-08-03 10:18:46

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

Re: Start with mORMot Framework for specific project

Sounds a bit like if asynchronous callbacks over interface based services is what you need.
See the "chat" sample.

You have direct writing of all interface-based calls into a mORMot ORM persistence using TServiceContainerServer.SetServiceLog() for service calls.
See http://blog.synopse.info/post/2015/12/1 … r-Services
and http://synopse.info/files/html/Synopse% … l#TITL_183

Offline

#3 2016-08-05 12:40:48

danny
Member
Registered: 2016-08-02
Posts: 13

Re: Start with mORMot Framework for specific project

Thank you smile

Offline

Board footer

Powered by FluxBB