Last active
October 1, 2022 15:31
-
-
Save dgafka/16dfed894cbf186a4efb4148dc85cdea to your computer and use it in GitHub Desktop.
loosely-coupled-microservices-08.php
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 | |
class HealthCheck | |
{ | |
#[Distributed] | |
#[EventHandler("health_check")] | |
public function ping(): void | |
{ | |
// do some life check | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment