Skip to content

Instantly share code, notes, and snippets.

@dgafka
Last active October 1, 2022 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgafka/16dfed894cbf186a4efb4148dc85cdea to your computer and use it in GitHub Desktop.
Save dgafka/16dfed894cbf186a4efb4148dc85cdea to your computer and use it in GitHub Desktop.
loosely-coupled-microservices-08.php
<?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