DataSnap

Post on 17-May-2015

1.007 views 5 download

description

Osservazioni sul funzionamento di DataSnap.

Transcript of DataSnap

DATASNAP

DATASNAP

• Formerly MIDAS.

• Rimossa la fondazione DCOM (sconsigliata da Microsoft)

• Sostituita con i Component Indy.

• Si basa su dbExpress.

LIMITI

• Autenticazione e autorizzazione in Delphi XE3, solo HTTP Basic.

• Indy crea un thread per connessione.

• Framework di remoting costruito sopra un framework SQL.

LIMITI

Remoting Framework

SQL Framework

LIMITI

Remoting Framework

SQL Framework

TEST

http://192.168.10.14:8090/datasnap/rest/ TServerMethods/EchoString/A%20B%20C

TEST - 1 THREAD

TEST - 1 THREAD

TEST - 10 THREAD

LATENZA

0

7,5

15

22,5

30

3

22

2

1414 DataSnap 1 threadDataSnap 10 threadBBox 1 threadBBox 200 threadNode.js 200 thread

THROUGHPUT

0

1750

3500

5250

7000

6.196

5.340

3604563

DataSnap 1 threadDataSnap 10 threadBBox 1 threadBBox 200 threadNode.js 200 thread

MARCO CANTÙ DELPHI PRODUCT MANAGER

I think that if you want to build a very large REST application architecture you should roll out your own technology or use one of these prototypical architectures. For a small to medium size effort, on the other hand, you can probably benefit from the native DataSnap support.

Delphi 2010 Handbook

TROVIAMO UN'ALTERNATIVA!

• mORMot: client-server ORM and SOA for Delphi

• Java con Apache CXF e librerie native

• Node.js con librerie native