Replying to @lukaseder
Here is a customer. Here are his / her purchases. Which items would we recommend to him / her? Would we send her / him stuff without upfront payment? Only by credit card? <- that is what I was referring to.
1
Yes. All very interesting questions for a nice ERD.
1
I don't see how you can answer that question by looking at an ERD, sorry.
1
CREATE TABLE customer ( .., invoice_payment BOOLEAN );
1
I was referring to an algorithm that would take the purchase data and determine whether whether an upfront payment is required.
1
CREATE VIEW ... (...) 😉
1
1
Ah. I didn't know that algorithms implemented in DDL are data.... 😉
1
3
I get your point of course. To me, data and logic is all the same. The beauty of the relational model is that it already includes relational algebra to create and operate on derived data. You're doing the same, but you call it "API" and probably imply it is done elsewhere.
3
I sympathize with your view, @lukaseder; it’s similar to my favorite architectural style in that it tries to cast everything into a consistent model. And the tons of shitty REST service implementations could be compared to the typical unmaintainable PL/SQL catastrophes.
1
2
Yes, REST and PL/SQL APIs have much in common. Could the biggest commonalities leading to catastrophe be caused in part by Conway's Law? Perhaps, Conway's Law is also a factor against data centricity, which is probably harder to maintain across organisational boundaries...
1
Replying to @lukaseder @ewolff
Well, in that dimension REST is the architectural style of the web (not just a blueprint for APIs). I’d argue the web doesn’t do too badly in scaling to decentralized organizations :)

Oct 5, 2020 · 1:32 PM UTC

1