-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e7f087
commit d3eb479
Showing
6 changed files
with
150 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
# 8 Web services | ||
# 8 Servicios Web | ||
|
||
Web services allows you use formats like XML or JSON to exchange information through HTTP. For example you want to know weather of Shanghai tomorrow, share price of Apple, or commodity information in Amazon, you can write a piece of code to get information from open platforms, just like you call a local function and get its return value. | ||
Los servicios Web le permite utilizar formatos como XML o JSON para intercambiar información a través de HTTP. Por ejemplo, usted quiere saber el tiempo de Shanghai mañana, precio de las acciones de Apple, o información de producto en Amazon, usted puede escribir un pedazo de código para obtener información de las plataformas abiertas, como se llama a una función local y obtener su valor de retorno. | ||
|
||
The key point is that web services are platform independence, it allows you deploy your applications in Linux and interactive with ASP.NET applications in Windows; same thing, there is no problem of interacting with JSP in FreeBSD as well. | ||
El punto clave es que los servicios Web son la independencia de plataforma, que le permite desplegar sus aplicaciones en Linux y interactiva con las aplicaciones ASP.NET de Windows; lo mismo, no hay ningún problema de interactuar con JSP en FreeBSD también. | ||
|
||
REST and SOAP are most popular web services in these days: | ||
REST y SOAP son los servicios web más populares en estos días: | ||
|
||
- Requests of REST is pretty straight forward because it's based on HTTP. Every request of REST is actually a HTTP request, and server handle request by different logic methods. Because many developers know HTTP much already, REST is like in their back pockets. We are going to tell you how to implement REST in Go in section 8.3. | ||
- SOAP a standard of across network information transmission and remote computer function calls, which is launched by W3C. The problem of SOAP is that its specification is very long and complicated, and it's still getting larger. Go believes that things should be simple, so we're not going to talk about SOAP. Fortunately, Go provides RPC which has good performance and easy to develop, so we will introduce how to implement RPC in Go in section 8.4. | ||
- Las solicitudes de REST es bastante sencillo, ya que está basado en HTTP. Cada solicitud de REST es en realidad una petición HTTP, y el mango servidor de peticiones por diferentes métodos lógicos. Debido a que muchos desarrolladores saben HTTP mucho ya, REST es como en sus bolsillos traseros. Vamos a decirles cómo implementar REST en Go en la sección 8.3. | ||
- SOAP un estándar de transmisión a través de la información de la red y las llamadas a funciones de ordenador a distancia, que se pusieron en marcha por el W3C. El problema de SOAP es que su especificación es muy largo y complicado, y todavía está haciendo más grande. Go cree que las cosas deben ser simples, por lo que no vamos a hablar de SOAP. Afortunadamente, Go ofrece RPC que tiene un buen rendimiento y fáciles de desarrollar, por lo que presentará cómo implementar RPC en Go en la sección 8.4. | ||
|
||
Go is the C language of 21st century, we aspire simple and performance, then we will introduce socket programming in Go in section 8.1 because many game servers are using Socket due to low performance of HTTP. Along with rapid development of HTML5, websockets are used by many page game companies, and we will talk about this more in section 8.2. | ||
Go es el lenguaje C de siglo 21, aspiramos sencilla y el rendimiento, a continuación, vamos a presentar la programación de sockets en Go en la sección 8.1, ya que muchos servidores de juegos están utilizando Socket debido al bajo rendimiento de HTTP. Junto con el rápido desarrollo de HTML5, websockets son utilizados por muchas compañías de la página del juego, y vamos a hablar de esto más en la sección 8.2. | ||
|
||
## Links | ||
|
||
- [Directory](preface.md) | ||
- Previous Chapter: [Chapter 7 Summary](07.7.md) | ||
- Next section: [Sockets](08.1.md) | ||
- Next section: [Sockets](08.1.md) |
Oops, something went wrong.