RPCのよく考えた呼び出し方

処理の時間のタイムアウトがあるようなので、メソッドに一度に渡すパラメータのデータ量を1だけにする。
そして、順次にコールバックされるようにする。
一括のデータ量の変数を渡すのはダメ。
RPCの世界だと処理の時間が長いのがダメなのか、なんでか分からない。

これ読まなきゃ、Sails.jsは始まらない。

  • http://sailsjs.com/documentation/reference/command-line-interface/sails-lift
  • http://sailsjs.com/documentation/reference/command-line-interface/sails-generate
  • http://sailsjs.com/documentation/reference/configuration/sails-config-routes
  • http://sailsjs.com/documentation/concepts/routes
  • http://sailsjs.com/documentation/concepts/routes/custom-routes
  • http://sailsjs.com/documentation/concepts/controllers
  • http://sailsjs.com/documentation/reference/blueprint-api
  • http://sailsjs.com/documentation/concepts/views/locals
  • http://sailsjs.com/documentation/concepts/models-and-orm/query-language
  • https://github.com/balderdashy/sails-docs/blob/master/concepts/extending-sails/Hooks/hookspec/initialize.md
  • http://sailsjs.com/documentation/concepts/logging
  • http://www.embeddedjs.com/

#sails lift –verbose –models.migrate=’safe’

mono * nancy (Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono) on Ubuntu.

 

Nancy – Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono、起動。

 

# building mono.

sudo apt-get update -o Acquire::ForceIPv4=true
sudo sudo apt-get install -y autoconf automake libtool g++ gettext
cd ~/src
git clone git://github.com/mono/mono.git
cd mono
cd ~/src/mono
./autogen.sh --prefix=/usr/local
make -j8 get-monolite-latest
make -j8
sudo make install

 

# building nancy.

cd ~/src
git clone https://github.com/NancyFx/Nancy.git
cd Nancy
./build.sh

 

# compiling demo.

cd ~/src
mkdir nancydemo
cd nancydemo
mcs Program.cs HelloModule.cs -r:../Nancy/src/Nancy.Hosting.Self/bin/Release/net452/Nancy.dll -r:../Nancy/src/Nancy.Hosting.Self/bin/Release/net452/Nancy.Hosting.Self.dll -r:/usr/local/lib/mono/4.5-api/Mono.Posix.dll
mono Program.exe