ブログでもいろいろ解説しています。
http://little-hands.hatenablog.com/entry/top
ドメイン駆動設計屈指の難解な概念「境界付けられたコンテキスト」について解説します。
---
公式DDD Referenceの定義は以下の通りです。(和訳はだいぶ意訳しています)
bounded context
A description of a boundary (typically a subsystem, or the work of a particular team) within which a particular model is defined and applicable.
境界付けられたコンテキスト
特定のモデルを定義・適用する境界を明示的に示したもの。
代表的な境界の例は、サブシステムやチームなど。
まぁなかなかよくわからないですよね。DDD用語の中でもかなり難解なワードです。 境界付けられたコンテキストは、2つの観点から解説が必要でしょう。
・概念としての境界付けられたコンテキスト
・境界付けられたコンテキストをどう実装に落としこむか
今回のスライドでは、概念の方の説明をしたいと思います。
ブログでもいろいろ解説しています。
http://little-hands.hatenablog.com/entry/top
ドメイン駆動設計屈指の難解な概念「境界付けられたコンテキスト」について解説します。
---
公式DDD Referenceの定義は以下の通りです。(和訳はだいぶ意訳しています)
bounded context
A description of a boundary (typically a subsystem, or the work of a particular team) within which a particular model is defined and applicable.
境界付けられたコンテキスト
特定のモデルを定義・適用する境界を明示的に示したもの。
代表的な境界の例は、サブシステムやチームなど。
まぁなかなかよくわからないですよね。DDD用語の中でもかなり難解なワードです。 境界付けられたコンテキストは、2つの観点から解説が必要でしょう。
・概念としての境界付けられたコンテキスト
・境界付けられたコンテキストをどう実装に落としこむか
今回のスライドでは、概念の方の説明をしたいと思います。
1. The document discusses RESTful APIs and gRPC, comparing their characteristics and use cases.
2. RESTful APIs typically use HTTP and JSON to access resources via URLs while gRPC uses protocol buffers and HTTP/2 for efficient streaming and RPC.
3. gRPC is better suited for microservices and mobile apps due to its ability to handle streaming and performance, while REST is more widely used due to its simplicity and support in most languages.
The document discusses various methods for efficiently serializing and deserializing data in C# using MessagePack, including:
- Methods for reading primitive data types like integers and floats from bytes
- Representing float values as individual bytes for efficient serialization
- Using lookup tables and decoder interfaces to quickly determine MessagePack types and decode values
- Discussing faster alternatives like using direct memory copying instead of serialization delegates
- Mentioning how to extend MessagePack specifications while maintaining compatibility for faster serialization
19. 抽象データ型の例 : Java 標準API
19
抽象データ型
インタフェース
知りたいこと/やりたいこと
内部に隠された
データ型
String
文字列
isEmpty()
substring()
split()
...
char[] value
int count
BigInteger
任意精度の整数
add()
subtract()
multiply()
….
int[] value
int signum
…
LolcaDate
日付
isBefore()
isAfter()
plusDays()
...
int year
short month
short day
ArrayList
配列
isEmpty()
add()
contains()
…
Object[] data
int size
20. LocalDate
「日付」を汎用的に扱うクラス
int year;
short month;
short day;
LocalDateの内部
DateOfBirth
「誕生日」に特化したクラス
人間の関心事を表現する抽象データ型を定義する
実装技術
もっと抽象化
人間の関心事に近づける
Boolean 今月が誕生月()
Days 誕生日まであと何日()
plusDays(long days)
plusMonths(long months)
20
Java言語仕様
基本データ型
Java標準API
汎用の抽象データ型
ドメインオブジェクト
if( day > 31 ) … ;