Searching is an important part of many applications, and it is most of the time treated as a simple task. “Just query using LIKE and you’re good to go”. Well, while the LIKE clause can be handy sometimes we have to do it in a better way. After researching for a while I found a few good resources on the subject. The most attractive one is Elasticsearch. Yes, you can go far with full-text search and other searching techniques, however Elasticsearch is very handy and comes with a variety of useful functionalities. I’m going to cover the basics here and link more resources at the bottom, so you can dig further.
A lot of shiny things around the Laravel world that I would like to talk, so I chose the new CommandBus that Laravel 5 brings by default. To start I’d like to say that it’s pretty damn cool.
Alguns meses atrás escrevi um post sobre Commands e Domain Events para o PHP-PB e esqueci de postar aqui também.
Bom, aqui vai um link: Commands e Domain Events
Resumindo um pouco o que eu falo no post, esse padrão de arquitetura está em alta nos ultimos tempos: