🔭 I’m currently working on holo language!
TypeScript, C#, C/C++
- Programming language processing
- Server federation
- Desktop apps
A server-to-server resource federation protocol.
Home Page: https://marihachi.github.io/fed
License: MIT License
🔭 I’m currently working on holo language!
TypeScript, C#, C/C++
というのをやめる。
POSTで更新イベントを表すようにする。
キャッシュには元データがあるので、全て更新という扱いで問題無さそう。
PUTを使ってもいいが、無駄にリソースのIDを指定することを避けたい。
送信されたリソース自体にもIDを持っていながらURLパスにもIDを持つ必要はなさそう。
bodyはJSON
JSON Schema
https://qiita.com/meta_closure/items/edc0abc704f9ade37cc5
https://blog.wktk.co.jp/ja/entry/2016/01/19/json-schema-draft-v4
サーバー間の連合でも、普通のAPIのようにRESTful APIとしてやり取りするのがシンプルで良さそう。
サーバーは連合用のパス/federation/resource/
を持つ。
この下に、連合用の各種リソースのエンドポイントを持つ。
サーバーは、リモートサーバーのリソースが必要になるとGET
アクセスで取得する。
取得したリソースはキャッシュとして保存できる。キャッシュには有効期限を設けるべきである。
リソースのキャッシュがある場合は、リソースの取得を行わずに再利用できる。
リソースに変更があった場合、イベントが発行されることがある。
エンドポイント /federation/queue
で配信される。
TODO: イベント購読
サーバーは関連付けられた1つのURL(ホスト名?)を持っていて、他のサーバーはこのURLに対して通信を行う。
トークン認証でサーバーの同一性を確認する。
サーバーのURLはそのサーバーへのリンクとして機能するが識別するためのものではない。そのURLは必要に応じて変更することができる(認証トークンがある場合)。
ハンドラ内で処理して200を返すこともできるように
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.