@jayesol/jayeson.lib.delivery 2.0.7-beta.0 → 2.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,117 +1,117 @@
1
- v 1.6.0
2
- - Use netty 4.1 for library to be usable with Java 11.
3
- - Added stop consumption feature for delivery client to be disconnected from server.
4
-
5
- v 1.4.1
6
- - Use StreamFinder 1.6.0: Supports advertisements with paths.
7
- - New message group for Name Feed: group 30.
8
- - Prevent streams from getting excluded more than once by having only one ReconnectClientTask.
9
- - Not to attempt to load truststore if truststores are not provided in the SSL config.
10
-
11
- v 1.3.9
12
- - Use StreamFinder 1.4.1 : Sends advertisements containing all unadvertised streams instead of one advertisement per stream.
13
- - Use StreamFinder 1.5.0 : Split streams inside an advertisement into chunks of 100.
14
- - Fix memory leak of event loop not garbage collected if connection fails by shutting down the event loop.
15
- - Fix guice circular dependency between AuthService and AuthGroupProcessor.
16
- - Fix reconnection missing streams issue #18763.
17
- - Fix relayer oom issue #19366.
18
- - Fix disconnection from stream by not sending deregistration request twice #19650
19
- - Created ConsumptionStopEvent class in Java. An instance will be sent upon successful deregistration from stream.
20
- - Fixed not able to reconnect to redis server as a result of a change in redis server ip.
21
- - Added keepalive sending from subscriber to publisher and made sending of keepalive from publisher to subscriber be configurable and default to false.
22
-
23
- v 1.2.0
24
- - Use StreamFinder 1.3.0 : Discovering with scope information
25
- - TypeScript Support for delivery
26
- - Improved keep-aliv sending. Will only send if there are no other messages sent
27
- - Bug fixes involving release of reference counted messages, AuthMessage time out. **Config change:** Move `authMsgTimeout` to `authServiceConfig`
28
- - StreamStopMessage implementation. PE can explictly tell subscriber that it is stopping a stream and subscriber can failover. Refer to wiki for more information
29
-
30
- v 1.1.2
31
- - Use StreamFinder 1.2.3
32
- - Use Netty 4.0.36.Final
33
- - Support multiple scopes in subscriber(**Update subscriber config**.Will not work with older config)
34
- - Fixed Reconnection bug in Subscriber where reconnection trying stops after some retries
35
- - Remove StreamRegistry Group Processing from Eventloop.(No change is needed in PE)
36
- - To Describing PE callback behavoiur more explcitly:
37
- - PE should expect messages from an endpoint AFTER call of actOnStreamRegistrationRequest()
38
- - PE should initiate sending messages ONLY afte call of startPublishing()
39
- - Subscriber now dont make unnecessary connection to StreamFinder if application is not using subscriber module(i.e If no discovery streams in config).
40
- - Exposed default handlers in JsonBaseMessageClass. Applications can now extend JSonBaseMessageClass to do custom transformation of message within pipeline itself. E:g [here](https://gitlab.jayeson.com.sg/snippets/7)
41
- - Added Abstrations for using with jruby
42
- - Minor bug fixes and improved logging
43
-
44
- ------------------------------------------------------------------------
45
-
46
- ### Registered MessageGroups. Please register your message group before using on common infrastructure
47
-
48
- | Group | Byte |
49
- | ------------------------------- | ------ |
50
- | ObscureGroup(used internally) | 0 |
51
- | StreamRegistryGroup | 2 |
52
- | ConnectionCheckingGroup(keep alive) | 4 |
53
- | Authentication Group | 5 |
54
- | GenericMessageGroup | 6 |
55
- | OrderFeed |11 |
56
- | MinMax Feed |12|
57
- | Vodds Config Feed |13|
58
- | Soccer Results Feed |14|
59
- | Sports Results Feed |15|
60
- | Name Feed |30|
61
- | SoccerFeed |69|
62
- | Ping Pong Feed(Demo Example) |71|
63
- | Sports Feed |70|
64
-
65
-
66
- ### Develeoper Notes
67
-
68
- We follow google java style guide
69
- https://google.github.io/styleguide/javaguide.html
70
-
71
- Few Points to take note(Copied from style guide ):
72
-
73
- 4.1 Braces
74
-
75
- 4.1.1 Braces are used where optional
76
-
77
- Braces are used with if, else, for, do and while statements, even when the body is empty or contains only a single statement.
78
-
79
- 4.1.2 Nonempty blocks: K & R style
80
-
81
- Braces follow the Kernighan and Ritchie style ("Egyptian brackets") for nonempty blocks and block-like constructs:
82
-
83
- No line break before the opening brace.
84
- Line break after the opening brace.
85
- Line break before the closing brace.
86
- Line break after the closing brace if that brace terminates a statement or the body of a method, constructor or named class. For example, there is no line break after the brace if it is followed by else or a comma.
87
-
88
- Example:
89
-
90
- ```return new MyClass() {
91
- @Override public void method() {
92
- if (condition()) {
93
- try {
94
- something();
95
- } catch (ProblemException e) {
96
- recover();
97
- }
98
- }
99
- }
100
- };```
101
- ``````
102
-
103
- ### CI/CD guideline
104
-
105
- #### Publish
106
-
107
- Guideline: [CI/CD guideline](https://docs.jayeson.com.sg/ops/operations/gitlab-cicd/usage#how-to-use)
108
-
109
- - Publish for non prod repo:
110
- ```
111
- publish: snapshot
112
- ```
113
-
114
- - Publish for production repo:
115
- ```
116
- publish: prod
117
- ```
1
+ v 1.6.0
2
+ - Use netty 4.1 for library to be usable with Java 11.
3
+ - Added stop consumption feature for delivery client to be disconnected from server.
4
+
5
+ v 1.4.1
6
+ - Use StreamFinder 1.6.0: Supports advertisements with paths.
7
+ - New message group for Name Feed: group 30.
8
+ - Prevent streams from getting excluded more than once by having only one ReconnectClientTask.
9
+ - Not to attempt to load truststore if truststores are not provided in the SSL config.
10
+
11
+ v 1.3.9
12
+ - Use StreamFinder 1.4.1 : Sends advertisements containing all unadvertised streams instead of one advertisement per stream.
13
+ - Use StreamFinder 1.5.0 : Split streams inside an advertisement into chunks of 100.
14
+ - Fix memory leak of event loop not garbage collected if connection fails by shutting down the event loop.
15
+ - Fix guice circular dependency between AuthService and AuthGroupProcessor.
16
+ - Fix reconnection missing streams issue #18763.
17
+ - Fix relayer oom issue #19366.
18
+ - Fix disconnection from stream by not sending deregistration request twice #19650
19
+ - Created ConsumptionStopEvent class in Java. An instance will be sent upon successful deregistration from stream.
20
+ - Fixed not able to reconnect to redis server as a result of a change in redis server ip.
21
+ - Added keepalive sending from subscriber to publisher and made sending of keepalive from publisher to subscriber be configurable and default to false.
22
+
23
+ v 1.2.0
24
+ - Use StreamFinder 1.3.0 : Discovering with scope information
25
+ - TypeScript Support for delivery
26
+ - Improved keep-aliv sending. Will only send if there are no other messages sent
27
+ - Bug fixes involving release of reference counted messages, AuthMessage time out. **Config change:** Move `authMsgTimeout` to `authServiceConfig`
28
+ - StreamStopMessage implementation. PE can explictly tell subscriber that it is stopping a stream and subscriber can failover. Refer to wiki for more information
29
+
30
+ v 1.1.2
31
+ - Use StreamFinder 1.2.3
32
+ - Use Netty 4.0.36.Final
33
+ - Support multiple scopes in subscriber(**Update subscriber config**.Will not work with older config)
34
+ - Fixed Reconnection bug in Subscriber where reconnection trying stops after some retries
35
+ - Remove StreamRegistry Group Processing from Eventloop.(No change is needed in PE)
36
+ - To Describing PE callback behavoiur more explcitly:
37
+ - PE should expect messages from an endpoint AFTER call of actOnStreamRegistrationRequest()
38
+ - PE should initiate sending messages ONLY afte call of startPublishing()
39
+ - Subscriber now dont make unnecessary connection to StreamFinder if application is not using subscriber module(i.e If no discovery streams in config).
40
+ - Exposed default handlers in JsonBaseMessageClass. Applications can now extend JSonBaseMessageClass to do custom transformation of message within pipeline itself. E:g [here](https://gitlab.jayeson.com.sg/snippets/7)
41
+ - Added Abstrations for using with jruby
42
+ - Minor bug fixes and improved logging
43
+
44
+ ------------------------------------------------------------------------
45
+
46
+ ### Registered MessageGroups. Please register your message group before using on common infrastructure
47
+
48
+ | Group | Byte |
49
+ | ------------------------------- | ------ |
50
+ | ObscureGroup(used internally) | 0 |
51
+ | StreamRegistryGroup | 2 |
52
+ | ConnectionCheckingGroup(keep alive) | 4 |
53
+ | Authentication Group | 5 |
54
+ | GenericMessageGroup | 6 |
55
+ | OrderFeed |11 |
56
+ | MinMax Feed |12|
57
+ | Vodds Config Feed |13|
58
+ | Soccer Results Feed |14|
59
+ | Sports Results Feed |15|
60
+ | Name Feed |30|
61
+ | SoccerFeed |69|
62
+ | Ping Pong Feed(Demo Example) |71|
63
+ | Sports Feed |70|
64
+
65
+
66
+ ### Develeoper Notes
67
+
68
+ We follow google java style guide
69
+ https://google.github.io/styleguide/javaguide.html
70
+
71
+ Few Points to take note(Copied from style guide ):
72
+
73
+ 4.1 Braces
74
+
75
+ 4.1.1 Braces are used where optional
76
+
77
+ Braces are used with if, else, for, do and while statements, even when the body is empty or contains only a single statement.
78
+
79
+ 4.1.2 Nonempty blocks: K & R style
80
+
81
+ Braces follow the Kernighan and Ritchie style ("Egyptian brackets") for nonempty blocks and block-like constructs:
82
+
83
+ No line break before the opening brace.
84
+ Line break after the opening brace.
85
+ Line break before the closing brace.
86
+ Line break after the closing brace if that brace terminates a statement or the body of a method, constructor or named class. For example, there is no line break after the brace if it is followed by else or a comma.
87
+
88
+ Example:
89
+
90
+ ```return new MyClass() {
91
+ @Override public void method() {
92
+ if (condition()) {
93
+ try {
94
+ something();
95
+ } catch (ProblemException e) {
96
+ recover();
97
+ }
98
+ }
99
+ }
100
+ };```
101
+ ``````
102
+
103
+ ### CI/CD guideline
104
+
105
+ #### Publish
106
+
107
+ Guideline: [CI/CD guideline](https://docs.jayeson.com.sg/ops/operations/gitlab-cicd/usage#how-to-use)
108
+
109
+ - Publish for non prod repo:
110
+ ```
111
+ publish: snapshot
112
+ ```
113
+
114
+ - Publish for production repo:
115
+ ```
116
+ publish: prod
117
+ ```