Skip to content

lmarttins/easy-taxi-interview-failover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EasyTaxi Cache Failover

Instructions

Hello, this is a simple challenge to test your skills on Symfony, PHPUnit and Cache.

You will see that we have a Controller\CustomerController. It basically gives you the following capabilities:

  • Create multiple customers by sending an json to /customers/ endpoint
  • Delete all customers
  • Consult all customers

So what do you have to do?

  • We want you to obtain the reponse of GET customers method from a Cache Server.
  • Since you know that this information is immutable until someone hits POST/DELETE customer methods, you shall not hit the Database if cache information is available.
  • Make Unit and Functional tests to ensure everything is working fine.* To let the things a little bit interesting you will have to implement an failover: If Cache Server goes down, you have to hit the Database and this needs to be transparent to our end user, not an Error page!
  • You will recieve a thumbs up for good Commit Messages and SOLID knowledge.

Minimum Requirements

Installation

Running tests

  • Install PHPUnit
  • In projects root run: phpunit

About

Test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages