This is a creation in
Article, where the information may have evolved or changed.
We developed the first version of the Ironworker 3 years ago, is written in Ruby, the API based on the development of rails. It didn't take long for us to grow to a fairly large scale, and soon we reached the top of the Ruby program's load limit. To make a long story short, we switched to the go language, read on, and here's
. First, check the feasibility of Solution A. Use SOCKET to simulate IE to access the website and parse the http package. The workload is heavy.The B solution has no clue yet. You can only remember an Excel example when accessing the COM interface in ruby.
So Google found that watir (web application testing in ruby) is
Ruby on Rails is a complete framework for developing database-driven network applications. Recently, the latest version of Ruby on Rails 3.0 RC has been officially released and is available for download. The blog of the Ruby on Rails development team also revealed that the development of Ruby on Rails 3.0 will be accel
JGW Maxwell the concurrency test for a Ruby web framework at the end of 2011, and a contrast test for node. js. With 250 concurrent to do the stress test, back end use MongoDB database, a total of 100,000 requests completed, the test results are as follows:
Web Framework
Concurrency Model
Throughput
Rails
Multi-proces
-blocking? reactphp
......
Why startup, especially abroad, would choose Python or Ruby as a development language? I personally think that is because PHP is too popular, programmers are mixed. The name of PHP is not standardized, but I think it is not a big problem.
What's your idea?
I wrestling, if give me a reason to abandon PHP, and Python or Ruby for a living, that is, PHP programmer pay Low ...
The open
Recently looked at Ruby on rails and tried to integrate dynamic WEB Twain into Ruby on Rails. Here's how to do file uploads in rails with a few lines of code. Reference original: How to Load, Scan and Upload Files with Ruby on Rails Desmond Shaw Translation: Yushulx Software Installation
Dynamic
This article mainly introduces the example of Ruby using eventmachine to add the file download function to the HTTP server. The author also shares the solution to the problem of installing eventmachine on Windows, for more information, see:
Use ruby eventmachine and em-http-serve
The first two sections of this series have already covered how to configure the Ruby on Rails development environment, and now it's time to get to the point!Part1. Pre-development Preparation
The main task of this time is to develop the first rails program. In particular, this time I chose a (PAAs development platform), which is the Cloud 9 platform described in the Rails tutorial, which has automatically made our environment configuration work,
presentation layer is rendered by the browser
The logical layer manipulates the data from the server side and goes to the presentation layer
The data layer is responsible for storing the data.
6-tier architectureIf you divide it further, you get a 6-tier architecture, such as
The presentation layer is divided into the client layer and the presentation logic layer
The client layer is responsible for rendering the display page
The presentation layer is rendered by the browser
The logical layer manipulates the data from the server side and goes to the presentation layer
The data layer is responsible for storing the data.
6-tier architectureAssuming a further cut, you get a 6-tier architecture, such as
The presentation layer is divided into the client layer and the presentation logic layer
The client layer is responsible for rendering the display
language in the world, without ruby, you may feel like you are the only one that keeps up with the world's trends.
(Change Shen Wen's answer) php will think that php is the best language in the world, and python will feel full of pressure, ruby will think that he is the 23333 way of thinking that keeps up with the world's trends. He is a real guy, But now popular languages are more or less integrated, for
1, Aliyun a key to install the Web-wide environment
Download one-click to install Web full-environment Sh.zip compression packUpload to the server, decompression, execute the script, detailed steps described here
$ mv sh.zip/home/tmp/ cd/home/tmp
$ unzip sh.zip
$ chmod-r 777 Sh cd SH
# arbitrary selection of a method to execute a script
# method One
$./
as follows:Development:Adapter: sqlserverHost: mydb.netDatabase: myapp_developmentUsername: saPassword: secret
How many methods does ruby connect to the database? How can I connect to SQLServer?
For example, how does ruby connect to SQL SERVER in windows and linux. YesJAVA programming to access the SQL
With the page cache, Rails can no longer intervene. In a way, that's a good thing, because you can really get good performance. Rails simply creates an HTML page, puts it in a directory, and after that, it can be placed behind your head. From then on, the application server manages the pages and the pages go into the application server without any loops. From a performance perspective, page caching is a god
1. Write CGI
A simple CGI program is as follows:
#! /Usr/bin/ENV RubyPrint "HTTP/1.0 200 okrn"Print "Content-Type: text/htmlrnrn"Print "Hello world! RN"
We can use Ruby to process submitted parameters, fill templates, generate HTML, and so on, but it is a little troublesome. We can use the CGI Module.
2. Use CGI. Rb
CGI. Rb is used to write CGI scripts. It can operate form, cookies, environment variables, and maintain sessions. You should know where t
Rails help documents and API documentation:
Rake Doc:guides
Rake doc:rails
When the command is complete, the document is generated to the doc directory.
Create a custom command in Railswhen you develop a WEB application, you will inevitably encounter a command script that needs to be written at the end of the execution. For example, to import data from a very large text. It's fairly straight
and Nginx.
WEB Application
The WEB server accepts Http Request, returns Response, many times Response is not a static file, therefore need an application to generate corresponding Response according to request. The applications here are mainly used to process the related business logic, read or update the database, and return the corresponding Response accordi
accepts Http Request, returns Response, and many times Response is not a static file, so an application is required to generate the corresponding Response based on the request. The application is mainly used to process the related business logic, read or update the database, and return the corresponding Response according to different Request. Note that this is not the WEB server itself to do this, it is o
server types independently of each other. Now you can really match the WEB server with the framework and then choose your favorite pair. For example, you can use Django,Flask or Pyramid, with Gunicorn,nginx/uwsgi , or waitress to combine. Thanks to WSGI's support for both the serv
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.