|
|
|
|
|
by grzm
1669 days ago
|
|
Design is about tradeoffs, as I think something the submission addresses very well. Something I recognize about your implementation of get-article! is that it knows a number of implementation details: * it handles http requests
* it uses a jdbc data source
* the result of the parsing function and the arguments of the database fetch function are coupled,
* the result of the database fetch and the formation of the http response are coupled This has implications both in testing and in application maintenance. What needs to change if you decide you want to add caching in front of the database? What if you want to pick up requests off of a Kafka stream instead of from a web server? Like I said, there are tradeoffs. The entire premise of the article is about depending on abstractions rather than implementations. Depending on your particular context, where you want to end up on the continuum should reflect your particular context. |
|