-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* inceased outbox VARCHAR column length to 2048 (#155) * added reply to initiator functionality to sagas (#157) * added generic handler metrics with message type as the label (#144) * added generic handler metrics with message type as the label * add handler name label to the metrics * adding new metrics to the read me * Fix handle empty body (#156) * set the correct Type and Content-Type headers on out going messages (#160) * set the correct Type and Content-Type headers on out going messages * refactoring * fixing ReplyToInitiator not working when initiator sends a message via the RPC interface (#163) * fixing ReplyToInitiator not working when initiator sends a message via the RPC interface * Improved wording of saga documentation article (#164) * better wording for documentation * added golangcli lint configuration and fixed linting failures (#165) * fixed logging issues (#167) * allow getting the saga id of the current invoked saga (#168) * setting the target saga id on the saga correlation id field (#171) * support emperror (#174) * setting the target saga id on the saga correlation id field * added emperror support * Fix logging and added logging documentation (#176) * fixed logging issues and added documentation logging via the invocation interface was broken and did not add contextual data related to the invocation due to a bug in the way the Glogged structure is currently implemented. Also added documentation on how logging should be done within a handler including adding context to returned errors so that data gets logged * added missing documentation file * added documentation on serialization support (#177) * fixed emperror url format * added serialization documentation * added documentation for messaging patterns, retries and transactional processing (#181) * fixed emperror url format * added serialization documentation * added documentation for message semantics, retries and transactions * Fix docmentation (#182) * fixed emperror url format * added serialization documentation * added documentation for message semantics, retries and transactions * fixing tx documentation page * Added sample application (#184) * Update README.md * added ability to configure outbox (#186) * fixing issues with invoking the GlobalrawMessageHandler (#189) Fixing the following issues: #187 #188 * Saga bug fixes (#198) * fixing the way that the target service was resolved closes #195 #195 * Fixing the value of the StartedBy field when creating a new saga instance closes #194 #194 * rolling back checking if replying to an event to maintain backward compatibility * logging a Warn instead of rejecting the message when saga not found in store closes #196 #196 * fixing minor tech debt issues (#199) * v1.1.5 rollup to master (#185) * fix(bug:200) logs are now being reported correctly Fixes issue #200 Also updated go.mod for newer versions of dependancies * added metrics for transactional outbox (#193) * added metrics for transactional outbox The follwoing metrics were added outbox_total_records: reports the total amount of records currently in the outbox outbox_pending_delivery: reports the total amount of records pending delivery currently in the outbox outbox_pending_removal: reports the total amount of records that were sent and pending removal currently in the outbox * reading status and count fields in the correct order from rows * service name now gets added to log entries when a custom logger is set or in saga store (#204) * service name now gets added to log entries when a custom logger is set #200 * fixing issue that the saga store was not adding the service to its log entires #206 * Fix logging (#207) * service name now gets added to log entries when a custom logger is set #200 * fixing issue that the saga store was not adding the service to its log entires #206 * fixing minor issue with logging saga store initialization * Add support for setting the idempotency key on a BusMessage (#208) * Added x-idempotency-key header and the ability for client code to set it #106 * Set the value of BusMessage.ID as the default value of BusMessage.IdempotencyKey * fixing issue with txoutbox failing to deliver a message after 50 (#205) failed attempts #203 * Allow correctly replaying Events (#190) * refactored returnDeadToQueue to allow correctly returning Events as well as Messages(commands) * fixed lint issues * code review fixes * more review comments * minor change to force coveralls to rebuild * returnDeadToQueue - changed routing-key to always be that routing-key of the first death, not the latest death, also refactored naming and added comment for clarity * moved getRoutingParamsFromDelivery to worker.go * fixed type in migration name attribute (#213) * adding all logging context data to worker and saga log entries (#215) * adding all logging context data to worker and saga log entries * added logging with context when command or reply received for saga def but no saga correlation id found * removing minor discrepancies and updating documentation
- Loading branch information
Guy Baron
authored
Oct 20, 2019
1 parent
eb32401
commit 50aecfb
Showing
25 changed files
with
643 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package gbus | ||
|
||
import "time" | ||
|
||
//BusConfiguration provides configuration passed to the bus builder | ||
type BusConfiguration struct { | ||
MaxRetryCount uint | ||
BaseRetryDuration int //TODO:Change type to uint | ||
OutboxCfg OutboxConfiguration | ||
} | ||
|
||
//OutboxConfiguration configures the transactional outbox | ||
type OutboxConfiguration struct { | ||
/* | ||
Ackers the number of goroutines configured to drain incoming ack/nack signals from the broker. | ||
Increase this value if you are experiencing deadlocks. | ||
Default is 10 | ||
*/ | ||
Ackers uint | ||
//PageSize is the amount of pending messsage records the outbox selects from the database every iteration, the default is 500 | ||
PageSize uint | ||
//MetricsInterval is the duration the outbox waits between each metrics report, default is 15 seconds | ||
MetricsInterval time.Duration | ||
//SendInterval is the duration the outbox waits before each iteration, default is 1 second | ||
SendInterval time.Duration | ||
/* | ||
ScavengeInterval is the duration the outbox waits before attempting to re-send messages that | ||
were already sent to the broker but were not yet confirmed. | ||
Default is 60 seconds | ||
*/ | ||
ScavengeInterval time.Duration | ||
} |
Oops, something went wrong.