The Interface For Later
In review, a colleague asks that PostgresOrderStore be hidden behind an OrderStore interface, "so we can swap the database later".
What is on the table: no second datastore appears on the roadmap or in any RFC. The service's tests already run against a real Postgres in a container and the whole suite finishes in 8 seconds. The class has 6 public methods and every one is called. Your IDE extracts an interface from a class with one keystroke.
What is the right call?
Sign in to answer questions and track your progress
Sign In