Apache Thrift: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica |
Migliorati collegamenti, aggiunte voci correlate |
||
(19 versioni intermedie di 16 utenti non mostrate) | |||
Riga 1:
'''Apache Thrift''' è un [[Interface Description Language|linguaggio di definizione di interfaccia]] (IDL) usato per definire e creare servizi per diversi linguaggi informatici<ref>{{
|accesso=
|
|
|
|
|
|
|dataarchivio= 23 luglio 2011
|
| ___location = http://www.sodeso.nl/▼
|urlmorto= sì
| publisher = Sodeso – Software Development Solutions▼
}}</ref>, in dettaglio, un [[protocollo di comunicazione]] binario<ref>{{Cita web
| title = Installing and using Apache Cassandra With Java Part 4 (Thrift Client)▼
|accesso= 30 marzo 2011
| quote = Thrift is a separate Apache project which is, to put it simply, a binary communication protocol.▼
|
È usato come [[framework]] per procedure di chiamata remota (RPC) e fu sviluppato presso [[Facebook]] per lo "sviluppo di servizi per linguaggi scalabili". Combina un software stacj con un motore della generazione di codice per costruire servizi che lavora efficientemente per diversi gradi e senza soluzione di continuità tra [[Delphi]], [[C#]], [[C++]] (su sistemi [[POSIX]] compatibili), [[Cappuccino]], [[Cocoa]], [[Erlang]], [[Go]], [[Haskell]], [[Java]], [[OCaml]], [[Perl]], [[PHP]], [[Python]], [[Ruby]], [[Node.js]] e [[Smalltalk]]<ref>{{cite web▼
▲|
| author = Andrew Prunicki▼
|
|dataarchivio= 15 agosto 2010
| publisher = Object Computing Inc. – An Open Solutions Company▼
|urlarchivio= https://web.archive.org/web/20100815022825/http://www.sodeso.nl/?p=251
| title = Apache Thrift: Code Generation▼
|urlmorto= sì
| quote = Thrift supports many languages too varying degrees. The complete list is below. Be careful before assuming that just because your language has some support that it supports all of the features of Thrift. Python for instance, only supports TBinaryProtocol. Cocoa, C++, C#, Erlang, Haskell, Java, OCaml, Perl, PHP, Python, Ruby, and Smalltalk▼
▲}}</ref>. È usato come [[framework]] per
▲| url = http://jnb.ociweb.com/jnb/jnbJun2009.html}}</ref>.
|accesso= 12 aprile 2011
Sebbene sviluppato presso Facebook, ora è un progetto [[open source]] presso la [[Apache Software Foundation]]. L'implementazione fu descritta in un articolo tecnico rilasciato da [[Facebook]] nell'aprile [[2007]], ora presente su Apache.▼
▲|
|url= http://jnb.ociweb.com/jnb/jnbJun2009.html
|dataarchivio= 23 luglio 2011
|urlarchivio= https://web.archive.org/web/20110723051326/http://jnb.ociweb.com/jnb/jnbJun2009.html
|urlmorto= sì
}}</ref>.
▲Sebbene sviluppato presso Facebook, ora è un progetto [[open source]] presso la [[Apache Software Foundation]]. L'implementazione fu descritta in un articolo tecnico
== Architettura==
Line 29 ⟶ 41:
=== Protocolli supportati ===
* TBinaryProtocol
* TCompactProtocol
* TDebugProtocol
* TDenseProtocol
* TJSONProtocol
* TSimpleJSONProtocol
== Creare un servizio Thrift ==
Creazione di un servizio Thrift in C++:
<
enum PhoneType {
HOME,
Line 52 ⟶ 64:
3: PhoneType type
}
</syntaxhighlight>
== Note ==
<references/>
== Voci correlate ==
* [[gRPC]]
* [[Cap'n Proto]]
* [[Apache Avro]]
* [[JSON-RPC]]
* [[XML-RPC]]
== Altri progetti ==
{{interprogetto}}
== Collegamenti esterni ==
* {{
* {{
* {{
* {{
{{Apache}}
{{Facebook}}
{{portale|informatica}}
|