Codington
0 of 8 problems solved • 0%

Exercise prompt

Design the Service Registry

The operations team is about to register its first two services. Design the table so that the same rules apply when the next team adds a service.

Your task

Create services with columns id integer, name text and retries integer, in that order. Every name is required and unique. The retry count is required and defaults to 2. Register api (ID 1) using the default and worker (ID 2) with zero retries.

Opening the database…