Fix a spell miss of document.
[AGL/documentation.git] / docs / 3_Developer_Guides / 2_Application_Framework_Binder / 1_Binder_daemon_vocabulary.md
1 ---
2 title: Binder daemon vocabulary
3 ---
4
5 ## Binding
6
7 A shared library object intended to add a functionality to an afb-daemon
8 instance.
9 It implements an API and may provide a service.
10
11 Binding made for services can have specific entry points called after
12 initialization and before serving.
13
14 ## Event
15
16 Messages with data propagated from the services to the client and not expecting
17 any reply.
18
19 The current implementation allows to widely broadcast events to all clients.
20
21 ## Level of assurance (LOA)
22
23 This level that can be from 0 to 3 represent the level of
24 assurance that the services can expect from the session.
25
26 The exact definition of the meaning of these levels and how to use it remains to
27 be achieved.
28
29 ## Request
30
31 A request is an invocation by a client to a binding method using a message
32 transferred through some protocol:
33
34 - HTTP
35 - WebSocket
36 - ...
37
38 and served by ***afb-daemon***
39
40 ## Reply/Response
41
42 This is a message sent to client as the result of the request.
43
44 ## Service
45
46 Service are made of bindings running on a binder
47 The binder is in charge of connecting services and applications.
48 A service can serve many clients.
49
50 The framework establishes connection between the services and the clients.
51 Using sockets currently but other protocols are considered.
52
53 The term of service is tightly bound to the notion of API.
54
55 ## Session
56
57 A session is meant to be the unique instance context of a client,
58 which identify that instance across requests.
59
60 Each session has an identifier.
61 Session identifier generated by afb-daemon are UUIDs.
62 A client can present its own session id.
63
64 Internally, afb-daemon offers a mechanism to attach data to sessions.
65 When a session is closed or disappears, data attached to that session
66 are freed.
67
68 ## Token
69
70 The token is an identifier that the client must give to be authenticated.
71
72 At start, afb-daemon get an initial token.
73 This initial token must be presented by incoming client to be authenticated.
74
75 A token is valid only for a period.
76
77 The token must be renewed periodically.
78 When the token is renewed, afb-daemon sends the new token to the client.
79
80 Tokens generated by afb-daemon are UUIDs.
81
82 ## UUID
83
84 It stand for Universal Unique IDentifier.
85
86 It is designed to create identifier in a way that avoid has much as possible
87 conflicts.
88 It means that if two different instances create an UUID, the
89 probability that they create the same UUID is very low, near to zero.
90
91 ## x-afb-reqid
92
93 Argument name that can be used with HTTP request.
94 When this argument is given, it is automatically added to the "request" object of the answer.
95
96 ## x-afb-token
97
98 Argument name meant to give the token without ambiguity.
99 You can also use the name **token** but it may conflicts with others arguments.
100
101 ## x-afb-uuid
102
103 Argument name for giving explicitly the session identifier without ambiguity.
104 You can also use the name **uuid** but it may conflicts with others arguments.