Weekly Review #11

New Laravel-Podcast episode and two packages originated from ITsoup's latest developments.

Weekly Review #11

Super late, I know... But here's this week's gist!

New Laravel-Portugal podcast episode

On the latest episode of the Laravel-Portugal podcast, we had the pleasure to talk with João Pina about the use of the Laravel framework in his well-known platform Fogos.pt.

You can watch the episode here.

ITsoup's developments

This last week was full of improvements. I've extracted the health-check endpoint into a dedicated package, since all services we'll be using that same endpoint to supply information to the underlying infrastructure health checker.

I don't think I ever talked about this health checker... Its purpose is to ping each service, every minute, to see if is healthy. In case the response status is anything but a 200 OK, then it'll remove that service from the load-balancing rotation or if there are no more instances of that service, it'll automatically return a 503 Service Unavailable response without even touch the service endpoints.

It's also a more contextualized error status code and can be picked up by other services in order to automate the recovery process of the bad service instance.

On another note, I've finished the authorization part of the Asset Active Directory service, which relies solely on the Organization service's issued JWT to identify and authenticate if a request has the necessary permissions to continue its execution.

What I'm still doing, though, is the extraction of this feature into a dedicated package. Like the health check endpoint, all ITsoup's services will rely on the same logic for this, so it makes total sense to extract it to a dedicated package and only rely on minor configurations' changes to adapt the markers the application should search to validate the incoming requests' JWT.

If you're interested in the details of this development, you should totally check out the repository on GitHub.