#1 2018-07-09 09:11:17

Hmdsadeghian
Member
Registered: 2017-11-25
Posts: 31

Type of Service Application

Hi all,
Which type of application must be created for server side services?

I have an old application that want to separate into two physical layers (server and client) , and write business in server side that expose services to the client. Also need to create client side for web and mobile. But I don't know which type of application is appropriate for server side that can publish on the web easily.

Thanks in advance.

Offline

#2 2018-07-09 14:14:14

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

Re: Type of Service Application

Check the TSynDaemon skeleton class in mORMotService.pas.
It is able to instantiate a server-side service, on both Windows and Linux, for both Delphi and FPC.

Offline

#3 2018-07-09 14:48:34

Hmdsadeghian
Member
Registered: 2017-11-25
Posts: 31

Re: Type of Service Application

Thanks a lot.
after creating server application, can I deploy on the web? I don't have a dedicate server.

Offline

#4 2018-07-09 15:40:31

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

Re: Type of Service Application

You need at least a virtual server, since you need to run the executable.

Offline

#5 2018-07-09 15:52:13

Hmdsadeghian
Member
Registered: 2017-11-25
Posts: 31

Re: Type of Service Application

Thanks a lot
I want to create a Http server with interface-based services  with MVVM pattern. also in client application I have only UI without any business code.

with this architecture , Can I have a asp.net that connect to this server and working with that?
Would you tell me that this architecture is good or not?

I want to write my core engine with delphi and publish on the web( with buying a dedicated server) and connect to the core from the browser. Also want to create client application (web app) with Angular and asp.net core.
Also in intranet , I want to create client desktop application with Delphi to connect to the Server that is hosted on that intranet.

would you tell me that which architecture is the best for me.?


Thanks .

Last edited by Hmdsadeghian (2018-07-09 16:25:10)

Offline

#6 2018-07-10 07:50:11

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

Re: Type of Service Application

Define REST services for the Delphi server part, using interface-based services.
Both Angular and Delphi rich clients would be able to connect to them.

Offline

#7 2018-07-10 08:30:59

Hmdsadeghian
Member
Registered: 2017-11-25
Posts: 31

Re: Type of Service Application

Thanks a lot

Offline

#8 2018-07-11 03:56:23

Hmdsadeghian
Member
Registered: 2017-11-25
Posts: 31

Re: Type of Service Application

I'm focus on example 16 . "Execute SQL via services". Is this sample is appropriate for me for creating REST server application from this example or not?

Offline

#9 2018-07-11 07:14:53

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

Re: Type of Service Application

No, this is too close to the metal, since it exports SQL remotely.
Define high-level REST endpoint, via interface-based services, using simple DTO objects or records.

Check sample 14 + 20 + 35
and https://synopse.info/files/html/Synopse … ml#TITL_63

Offline

#10 2018-07-11 07:27:56

Hmdsadeghian
Member
Registered: 2017-11-25
Posts: 31

Re: Type of Service Application

Thank you very much

Offline

Board footer

Powered by FluxBB