History¶
0.0.3 (2021-05-24)¶
renamed classes and removed Minos prefix
Integration of Command and CommandReply with Handler
0.0.4 (2021-05-31)¶
Documentation improvement
BugFixes
0.0.5 (2021-05-31)¶
BugFixes
0.0.6 (2021-06-02)¶
Added Retry functionality at Broker
Added Locked status at Broker
Bugfix
0.0.7 (2021-07-06)¶
Added basic approach for Circuit Braker ( Broker and Publisher)
SQL queries refactor ( added support for psycopg method for query building )
Migration of shapshot to Minos Common
Updated Test
BugFix
Added clients for Minos Discovery Service
Added support for Docker and Docker-Compose
0.0.8 (2021-07-12)¶
Add new version support for minos-common
BugFix
0.0.9 (2021-07-12)¶
BugFix
0.0.10 (2021-07-26)¶
Add
enroute
decorator.Add
ReplyHandlerPool
.Fix bug related with
DiscoveryConnector
.Add
WrappedRequest
.
0.0.11 (2021-07-27)¶
Be compatible with
minos-microservice-common==0.1.7
.Fix bug related with
EventConsumerService
,CommandConsumerService
andCommandReplyConsumerService
and thestart
method.Fix bug related with
get_host_ip
function and some DNS systems.
0.0.12 (2021-08-03)¶
Small Improvements
Bugfixes
0.0.13 (2021-08-19)¶
Update
DiscoveryConnector
to support auto discoverable endpoint.Increase the concurrency degree of
Handler.dispatch
.Rename
RestBuilder
asRestHandler
.Refactor
HandlerEntry
0.0.14 (2021-09-01)¶
Unify consumer queues into a single one
consumer_queue
.Replace periodic checking (active waiting) by a
LISTEN/NOTIFY
approach (reactive) on consumer and producer queue.Use single reply topic based on microservice name to handle
CommandReply
messages of sagas paused on disk.Refactor
ReplyPool
andDynamicReplyHandler
asDynamicHandlerPool
andDynamicHandler
and integrate them into the consumer queue.Improve
Producer
performance keeping kafka connection open between publishing calls.Implement direct message transferring between
Producer
andConsumer
for messages send to the same microservice.
0.0.15 (2021-09-02)¶
Add support for
__get_enroute__
method byEnrouteAnalyzer
.
0.0.16 (2021-09-20)¶
Add support for
Kong
discovery.Add support for
minos-microservice-common>=0.1.13
.Fix bug related with database queues and plain dates (without timezones).
0.0.17 (2021-09-27)¶
Add support for multiple handling functions for events.
Fix troubles related with dependency injections.
0.0.18 (2021-10-04)¶
Add
PeriodicTask
,PeriodicTaskScheduler
andPeriodicTaskSchedulerService
.Add
@enroute.periodic.event
decorator
0.0.19 (2021-11-03)¶
Add
"user"
context variable to be accessible duringRequest
handling (same asRequest.user
).Add support for
Request.user
propagation overCommandBroker
.
0.1.0 (2021-11-08)¶
Add
minos-microservice-common>=0.2.0
compatibility.
0.1.1 (2021-11-09)¶
Add
REPLY_TOPIC_CONTEXT_VAR
and integrate withDynamicHandlerPool
.Add support for
post_fn
callbacks following the same strategy as inpre_fn
callbacks.
0.2.0 (2021-11-15)¶
Remove dependency to
minos-microservice-aggregate
(nowminos.aggregate
package will requireminos.networks
).Add support for middleware functions.
Add support variable number of services (previously only
CommandService
andQueryService
were allowed).Migrate
Command
,CommandReply
,CommandStatus
andEvent
fromminos.common
tominos.networks
.Add support for
minos-microservice-common=^0.3.0
0.3.0 (2021-11-22)¶
Improve
BrokerHandler
dispatching strategy to be more concurrent (usingasyncio.PriorityQueue
and multiple consumers).Add
send(...)
method toDynamicBroker
in order to simplify the execution of request-response messages.Merge
minos.networks.brokers
andminos.networks.handlers
modules intominos.networks.brokers
(divided intohandlers
andsubscribers
).Merge
Command
,CommandReply
andEvent
intoBrokerMessage
.Rename
CommandStatus
asBrokerMessageStatus
.Merge
CommandBroker
,CommandReplyBroker
andEventBroker
intoBrokerPublisher
.Merge
CommandHandler
,CommandReplyHandler
andEventHandler
intoBrokerHandler
.Merge
CommandHandlerService
,CommandReplyHandlerService
andEventHandlerService
intoBrokerHandlerService
Rename
DynamicHandler
andDynamicHandlerPool
asDynamicBroker
andDynamicBrokerPool
Rename
Consumer
andConsumerService
asBrokerConsumer
andBrokerConsumerService
respectively.Rename
Producer
andProducerService
asBrokerProducer
andBrokerProducerService
respectively.Rename
HandlerRequest
,HandlerResponse
andHandlerResponseException
asBrokerRequest
,BrokerResponse
andBrokerResponseException
respectively.
0.3.1 (2021-11-30)¶
Add
identifier: UUID
andheaders: dict[str, str]
attributes toBrokerMessage
.Remove
saga: Optional[UUID]
andservice_name: str
attributes fromBrokerMessage
.Now
BrokerPublisher.send
returns theBrokerMessage
identifier instead of the entry identifier on theProducer
‘s queue.Add
REQUEST_HEADERS_CONTEXT_VAR
.Rename
USER_CONTEXT_VAR
andREPLY_TOPIC_CONTEXT_VAR
asREQUEST_USER_CONTEXT_VAR
andREQUEST_REPLY_TOPIC_CONTEXT_VAR
respectively.
0.3.2 (2021-12-27)¶
Add
CheckDecorator
(accessible fromEnrouteDecorator.check(...): CheckDecorator
attribute) allowing to set check functions with the(request: Request) -> bool
prototype to the service handling functions.Add support for more
Content-Type
values. Currently:application/json
,application/x-www-form-encoded
,avro/binary
,text/plain
andapplication/octet-stream
.Remove url params and query params injection from the
RestRequest.content(..)
method.Add
Request.params(...)
method allowing to access to the request’s params.Add
Request.has_content: bool
andRequest.has_params: bool
to check for the existence ofcontent
andparams
respectively.Add
InMemoryRequest
class that allows to create requests for testing or calling service handling functions directly.