Donde guardo mis ideas

Carlos Coronado Maleno

PHP Barcelona 2019 – Día 2

Carlos Coronado 14 - noviembre - 2019 Sin comentarios

Hoy continuamos con el segundo, y último, día de charlas.
Mathias Noback nos explica su modelo de «capas» sobre arquitectura hexagonal. Lorna nos enseñará a trabajar de forma segura con Webhooks, Enrico hablará sobre como monitorizar microservicios de forma eficiente y Théo Fidry nos expicará como realizar test mutantes para tener todas los frentes cubiertos.

Advanced Web Application Architecture

Matthias Noback

In this talk I’ll explain how to make a clean separation between your own business logic and the code that makes your application’s use cases available to the world outside. We’ll discuss architectural concepts like «layers» and «ports & adapters», and how applying them will make your application flexible enough to deal with a constantly changing environment.
  • Single responsibiliy principle for achitecture.
  • Not too many groups (Domain vs Infrastructure)
    • Note: Application inside domain


  • Introduce layers
    • Web framework
    • Domain logic
    • Database integration
  • Define ports and adapters (Hexagonal architecture)
    • Determine actors
    • Distinction between the intention and the implementation.
    • Advantages: Migrations, replacement, postpone vendor choices…


Working with Webhooks

Lorna Mitchell – Nexmo

This session covers the basic theory of webhooks and shows some examples of how to handle them in your own applications. We’ll also talk about when webhooks are a helpful design choice, and some pitfalls to look out for when you’re working with them!

Webhook use cases:

  • Notify of events
  • Deliver data when available
  • Broadcast to multiple receivers as-it-happens.
Code example:

Shared secrets
Best practice:

  • Do: accept, store and acknowledge quickly.
  • Don’t: Process before acknowledging.
  • Use queues. They protect you against bursty traffic and allow separate work from webservers.


Supercharge your apps with ReactPHP & PHP-PM

Albert Casademont – Noustique

Prepare yourself to dive into the lifecycle of a PHP request (compilation, opcode generation, memory allocation, execution, IO…) and to understand why there’s not much more room for performance improvements using the current stacks. We will also discuss the pros and cons of the ReactPHP + PHP-PM approach using a Symfony 4 app as an example, including developer experience and deployment options with containers.
  • No globals variables.
  • Async I/O.
  • Careful with state (Doctrine!).
  • No more var_dumps(), because the output will be in console, not in the Response.
  • Code changes need a reload. Because the loop still be running (Long-time process).
  • Dx is worse

It’s all about the goto

Derick Rethans

In this presentation, I am showing you some of the inner workings of PHP. We are going to look at how different language keywords and constructs are handled internally. Basically, everything is converted to goto, but the how and why, is not as simple as it seems! We’ll also have a look at what sort of optimisations opcache does to make your code run faster.


Develop microservices in PHP

Enrico Zimuel – Elastic

In this talk I’ll present how to develop microservices in PHP using Expressive framework + Swoole extension, to run PHP as HTTP server from the command line.


  • Separation of concerns
    • Modularity
    • Encapsulation
  • Scalability
    • Horizontally scaling
    • Workload partitioning


  • Service latency (Docker, Kubernetes, etc…)
  • Debugging
  • New architecture challenges
    • Autodiscovery
    • Telemetry
    • Everything needs to be automated

To handle errores between services can use a standard «application/problem+json» ->

PHP User Group Torino | Gli appassionati di PHP a Torino e ...

Microservices needs:

  • Loggin: aggregation.
  • Monitoring: telemetry, metrics.
  • debugging: APM, distributed tracing.
Deployment of full-scale ELK stack to Kubernetes – Hacker Noon

Workshop exercise:

Mutation Testing – Better code by making bugs

Théo Fidry

How do you know you added enough tests to capture the behaviour of an untested application in order to refactor it safely?
Discover Mutation Testing, a fun tool to make your code better by introducing bugs.
  • How do i safely refactor my test?
  • How do i know i can trust a test suite?
  • How do i ensure y team is writing test?
  • ….


Nuclear powered software security

Chris Riley

In this talk I’m going to show you how this level of safety is achieved, what happens when it goes wrong and then see what lessons we, as PHP developers, can learn from it to help us secure our applications from meltdown

Coming back to the monolith

Manel Sellés

This talk will explain architecture problems suffered at Ulabox, taking into account factors like team size or enterprise objectives, and which is our proposal to evolve our architecture.

Desarrollador de aplicaciones. Consultor tecnológico.

Facebook Twitter LinkedIn Skype  

Política de privacidad

Utilizamos "cookies" propias y de terceros para elaborar información estadística y mostrarle publicidad personalizada a través del análisis de su navegación. Si continúa navegando acepta su uso. Puede leer la política de cookies aquí.

Hemos detectado que estás usando un bloqueador de publicidad. Por favor, considera desactivarlo en esta web. Aunque no es mucho, la publicidad nos ayuda a paliar los gastos de mantener esta web activa. Muchas gracias

No cedemos los datos a terceros, solo lo usamos para enviarte notificaciones cuando publicamos algo nuevo.
No enviamos publicidad.