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
git config --global alias.tree "log --graph --abbrev-commit --decorate --format=format:'%C(dim white)%h%C(reset) - %C(green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(yellow)%d%C(reset)' --all" |
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
<?php | |
namespace Infrastructure\Generator; | |
use Domain\Generator\TraceIdGeneratorInterface; | |
use Domain\GUIDGenerator\GUIDGeneratorInterface; | |
final class TraceIdProvider implements TraceIdGeneratorInterface | |
{ | |
private $generator; |
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
<?php | |
public function consume(ConsumerInterface $consumer, AbstractQueueName $queueName): void | |
{ | |
$consumerIdentified = (string)Uuid::uuid4(); | |
$this->channel->qos(0, 10, false); | |
$this->channel->consume( | |
fn(Message $message) => $this->handle($message, $consumer), | |
$queueName, |
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
sequenceDiagram | |
RabbitMQ->>+Consumer: 10 messages | |
Consumer->>+Handler: start handle first mesage | |
Handler->>+Bank: withdrow money | |
Handler->>+Consumer: ack mesage | |
Consumer->>+Handler: start handle second mesage | |
Handler->>+Bank: withdrow money | |
Handler->>+Consumer: ack mesage | |
Consumer->>+Handler: start handle third mesage |