What implements an interface
What implements an interface
An example
We haven’t decided on that yet, but either way, we start with an interface for this imaginary queue:
Something’s fishy
Killing three giants with one stone
- a
DatabaseFeedUrlQueueis aFeedUrlQueue, and theFeedUrlTablecan stop being two things at once; - there’s a clearer separation of concerns, the
DatabaseFeedUrlQueueis responsible to create the payload, andFeedUrlTableis responsible to store it; - the storage layer knows nothing about our domain objects and how to use them.
Comments
Post a Comment