Update 03.2.md

Fixed typo and added ROR Definition.
This commit is contained in:
Dayan De La Paz
2015-06-26 18:41:28 -04:00
committed by James Miranda
parent 16088e6fcc
commit aa0e47a632

View File

@@ -50,11 +50,11 @@ Figure 3.8 Server printed information
As you can see, we only need to call two functions in order to build a simple web server.
If you are working with PHP, you're probably asking whether or not we need something like Nginx or Apache. The answer is we no, since Go listens to the TCP port by itself, and the function `sayhelloName` is the logic function just like a controller in PHP.
If you are working with PHP, you're probably asking whether or not we need something like Nginx or Apache. The answer is we don't, since Go listens to the TCP port by itself, and the function `sayhelloName` is the logic function just like a controller in PHP.
If you are working with Python you should know tornado, and the above example is very similar to that.
If you are working with Ruby, you may notice it is like script/server in ROR.
If you are working with Ruby, you may notice it is like script/server in ROR (Ruby on Rails).
We used two simple functions to setup a simple web server in this section, and this simple server already has the capacity for high concurrency operations. We will talk about how to utilize this in the next two sections.