DataSnap

14
DATASNAP

description

Osservazioni sul funzionamento di DataSnap.

Transcript of DataSnap

Page 1: DataSnap

DATASNAP

Page 2: DataSnap

DATASNAP

• Formerly MIDAS.

• Rimossa la fondazione DCOM (sconsigliata da Microsoft)

• Sostituita con i Component Indy.

• Si basa su dbExpress.

Page 3: DataSnap

LIMITI

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

• Indy crea un thread per connessione.

• Framework di remoting costruito sopra un framework SQL.

Page 4: DataSnap

LIMITI

Remoting Framework

SQL Framework

Page 5: DataSnap

LIMITI

Remoting Framework

SQL Framework

Page 6: DataSnap

TEST

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

Page 7: DataSnap

TEST - 1 THREAD

Page 8: DataSnap

TEST - 1 THREAD

Page 9: DataSnap

TEST - 10 THREAD

Page 10: DataSnap

LATENZA

0

7,5

15

22,5

30

3

22

2

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

Page 11: DataSnap

THROUGHPUT

0

1750

3500

5250

7000

6.196

5.340

3604563

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

Page 12: DataSnap

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

Page 14: DataSnap

TROVIAMO UN'ALTERNATIVA!

• mORMot: client-server ORM and SOA for Delphi

• Java con Apache CXF e librerie native

• Node.js con librerie native