Skip to content

Commit

Permalink
issue #104: Make it configurable command handler request timeout (#105)
Browse files Browse the repository at this point in the history
* issue #104: Make it configurable command handler request timeout
  • Loading branch information
Tochemey authored Oct 7, 2020
1 parent c6ef095 commit 400c3e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/service/src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,10 @@ lagompb {
# Ask timeout is required to
# send commands to the aggregate root and receive response
# the unit value is in second
# This is is not a gRPC timeout.
# This is timeout is required by the entity receiving a command to respond back to the caller.
ask-timeout = 5
ask-timeout = ${?COS_COMMAND_REPLY_TIMEOUT}
ask-timeout = ${?COS_COMMAND_HANDLER_TIMEOUT}

snapshot-criteria {
# number of events to batch persist
Expand Down
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ docker-compose -f ./docker/docker-compose.yml down -t 0 --remove-orphans
| COS_WRITE_PROPAGATED_HEADERS | CSV of gRPC headers to propagate to write side handler | <none> |
| COS_WRITE_PERSISTED_HEADERS | CSV of gRPC headers to persist to journal (experimental) | <none> |
| COS_JOURNAL_LOGICAL_DELETION | Event deletion is triggered after saving a new snapshot. Old events would be deleted prior to old snapshots being deleted. | false |
| COS_COMMAND_HANDLER_TIMEOUT | Timeout required for the Aggregate to process command and reply. The value is in seconds. | 5 |


### Read side configurations

Expand Down

0 comments on commit 400c3e0

Please sign in to comment.