or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing
xxxxxxxxxx
Actix-webについて
2020/9/4 原山和之
リポジトリ
機能
アクターモデルについて
アクターモデル実装はErlang/Elixirや、Scala/JavaにおけるAkkaが有名
Rust
アクターモデルに関して
ごめんなさい。全部日本語ですが。。。
Getting Started
Hello worldやってみる1
Cargo Newする
Tomlファイルに記述
Hello worldやってみる2
main.rs
HttpServerについて1
Architecture overview
HttpServerについて2
main.rs
チュートリアル
Appについて1
AppはHttpServerにおける1つのworkerが保持するアプリケーションインスタンス
Appは主にHttpServer作成時にnewメソッドの引数としてAppを作成するFactoryを渡し、HttpServerが各worker threadを立ち上げる際に渡されたFactoryを実行することで作成されます。
特筆すべき点としては、各worker threadで動作するAppは全て別のインスタンスであるということです。
Appについて2
Stateについて
ホットリロード設定
いちいちコンパイルして、サーバを立ち上げ直すのは少々面倒です。
開発時には大変面倒。効率よく!!的な感じです。
Tomlファイルを下記に
cargoのglobalに
systemfd
,cargo-watch
ホットリロード
ホットリロード
最後に
ツール
参考
Rustでwebサーバハンズオン! ~actix-web & postgres~ Part1
Web Application Server by Rust with actix-web
systemfd