* * *

Author Topic: Datasnap like servers with FPC/Lazarus  (Read 2809 times)

BSaidus

  • Full Member
  • ***
  • Posts: 231
  • lazarus 1.6.4 Win8.1 / cross FreeBSD
Datasnap like servers with FPC/Lazarus
« on: August 05, 2018, 07:16:14 pm »
Hi!
Is there any framework for FPC/lazarus that help to make Datasnap servers !?
Thanks you in advance.
lazarus 1.6.4 Win8.1 / cross FreeBSD
dhukmucmur vernadh!

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6548
Re: Datasnap like servers with FPC/Lazarus
« Reply #1 on: August 05, 2018, 09:35:34 pm »
Afaik Datasnap is totally proprietary.


BSaidus

  • Full Member
  • ***
  • Posts: 231
  • lazarus 1.6.4 Win8.1 / cross FreeBSD
Re: Datasnap like servers with FPC/Lazarus
« Reply #2 on: August 06, 2018, 09:13:57 am »
Yes, I know,
But is there any similar technologie that helps to do that.
lazarus 1.6.4 Win8.1 / cross FreeBSD
dhukmucmur vernadh!

Thaddy

  • Hero Member
  • *****
  • Posts: 6930
Re: Datasnap like servers with FPC/Lazarus
« Reply #3 on: August 06, 2018, 09:38:13 am »
You mean the concept of client server? Of course. Many. Datasnap is just one of those frameworks that abstract things (and makes things like the broker easier to handle)  away, but e.g. mORMot can do that, or Zeos, or... Sqldb... many more. Theoretically it would be possible to write an exact equivalent, but it is not necessary, nor would it simplify things: we tested and dropped datasnap in my Delphi days. It wasn't much better than its predecessor Midas, which we never used in production either. (AFAIK mORMot even started life as a replacement for Midas?)
« Last Edit: August 06, 2018, 09:42:10 am by Thaddy »
Ada's daddy wrote this:"Fools are my theme, let satire be my song."

taazz

  • Hero Member
  • *****
  • Posts: 5337
Re: Datasnap like servers with FPC/Lazarus
« Reply #4 on: August 06, 2018, 11:01:58 am »
Yes, I know,
But is there any similar technologie that helps to do that.
Depends. what features do you need? are after a multitier application like kbmmw, mormot or relathinclient? do you need rest support? http? something else all together? It might be easier to recommend a library if you could define your goals instead.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

valdir.marcos

  • Hero Member
  • *****
  • Posts: 516
Re: Datasnap like servers with FPC/Lazarus
« Reply #5 on: August 06, 2018, 11:21:57 am »
Is there any framework for FPC/lazarus that help to make Datasnap servers !?
More information about alternatives such as Indy, tiOPF, mORMot and REST Dataware that might help you:
Noob and JSON
http://forum.lazarus.freepascal.org/index.php/topic,41809.msg291869.html#msg291869

andrefm

  • Newbie
  • Posts: 1
Re: Datasnap like servers with FPC/Lazarus
« Reply #6 on: August 09, 2018, 06:54:05 am »
You can try https://www.restdw.com.br/ is a great project and you can use with Delphi or Lazarus. The downside for some is that most information is available in Portuguese only

BSaidus

  • Full Member
  • ***
  • Posts: 231
  • lazarus 1.6.4 Win8.1 / cross FreeBSD
Re: Datasnap like servers with FPC/Lazarus
« Reply #7 on: August 09, 2018, 09:09:23 am »
Thank you for your advices.
I'll investigate in my side about what would be convinient to me.
thank you.
lazarus 1.6.4 Win8.1 / cross FreeBSD
dhukmucmur vernadh!

edwinyzh

  • New member
  • *
  • Posts: 32
Re: Datasnap like servers with FPC/Lazarus
« Reply #8 on: August 21, 2018, 11:45:53 am »
I personally strongly recommend mORMot and I have several projects are based on it. mORMot is very feature-rich, very fast, fully documented and the author @ab is extremely helpful (just see it by looking at their forum).

I'd suggest to go from the samples:
https://github.com/synopse/mORMot/tree/master/SQLite3/Samples

And this getting started blog post series:
https://tamingthemormot.wordpress.com/

Thaddy

  • Hero Member
  • *****
  • Posts: 6930
Re: Datasnap like servers with FPC/Lazarus
« Reply #9 on: August 21, 2018, 01:50:41 pm »
I can recommend it too. mORMot is also technically way superior to datasnap.
Four remarks:
- the code is not always nicely formatted.
- I disagree that it is fully documented.
- It contains lot's of overly contrived performance code which leads to some need for glasses: too many ifdefs.
- performance differs between platforms because of that.

But the website has lot's of info and it is well maintained.

Fifth remark:
- It really is best in class at the moment.

« Last Edit: August 21, 2018, 01:55:53 pm by Thaddy »
Ada's daddy wrote this:"Fools are my theme, let satire be my song."

BSaidus

  • Full Member
  • ***
  • Posts: 231
  • lazarus 1.6.4 Win8.1 / cross FreeBSD
Re: Datasnap like servers with FPC/Lazarus
« Reply #10 on: August 22, 2018, 09:25:13 am »
I see mORMot, download it, but the sample TestSQL3.lpi could not compile.
And for beginner as I am, I could not find an entry point to investigate featurs I need.
Exactelly I want a an Architecture [ Client / (REST/Json/Server) / MariaDB ]
So Is mORMot capable to do that. IF so, could some one take me an exemple for this.

PS: RESTDataware do that, but performances I do not know, even I have a problem doing work there exemple.

Thanks you.
lazarus 1.6.4 Win8.1 / cross FreeBSD
dhukmucmur vernadh!

DonAlfredo

  • Hero Member
  • *****
  • Posts: 971
Re: Datasnap like servers with FPC/Lazarus
« Reply #11 on: August 22, 2018, 09:50:31 am »
@BSaidus

TestSQL3.lpi should compile on all systems.
However, the mORMot has yet to be updated to use the latest trunk and 3.2.0 !

Edit:
As always, AB, the author of the mORMot has updated the sources.
mORMot is now fixes 3.2 and trunk ready again.
« Last Edit: August 22, 2018, 12:32:55 pm by DonAlfredo »

BSaidus

  • Full Member
  • ***
  • Posts: 231
  • lazarus 1.6.4 Win8.1 / cross FreeBSD
Re: Datasnap like servers with FPC/Lazarus
« Reply #12 on: August 22, 2018, 02:06:53 pm »
@BSaidus

TestSQL3.lpi should compile on all systems.
However, the mORMot has yet to be updated to use the latest trunk and 3.2.0 !

Edit:
As always, AB, the author of the mORMot has updated the sources.
mORMot is now fixes 3.2 and trunk ready again.

It means Il will not compile on FPC 3.0.2/Lazarus-1.8 ??
lazarus 1.6.4 Win8.1 / cross FreeBSD
dhukmucmur vernadh!

DonAlfredo

  • Hero Member
  • *****
  • Posts: 971
Re: Datasnap like servers with FPC/Lazarus
« Reply #13 on: August 22, 2018, 02:31:52 pm »
FPC 3.0.2 misses some RTTI functionality that is used by the mORMot.
This can be circumvented, but the recommended way of using mORMot and unleash all its features is by using FPC trunk.

However, the good news: FPC 3.2, that has all RTTI needed, is on its way !!
So, use trunk for now, and you are ready for a stable FPC 3.2 !

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6548
Re: Datasnap like servers with FPC/Lazarus
« Reply #14 on: August 22, 2018, 03:15:34 pm »
It's a bit strange. The .inc says it does not use $IF FPC_FULLVERSION to avoid this because of D5 support, but elsewhere it says Synopse is D6+ ?!?!

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus