DDD Step By Step
A Practical Guide to Domain Driven Design

DDD and API

rated by 0 users
Not Answered This post has 0 verified answers | 1 Reply | 1 Follower

Top 10 Contributor
1 Posts
ptrecenti posted on Fri, Nov 20 2009 3:49 AM

I want now wath's the relashion ship between DDD and API.

In Eric Evans book's and in hi's infoQ presentations, he talk about the essentialy or a "dream" of ddd, in the end of the work, is produce something like a "business framework", so how we can do reusable code or something like a business API or how we can produce a "asset libary" of this work.

I'm want undestand that, because in every kind of software we have a customer, order, price, and a lot of commons things.

I want produce something like a google data API where you have access to the all softwares through a simples API.

I know that ddd does not cover this subject, but where its falls in ddd.

Thanks and sorry if its is a poor question.

All Replies

Top 10 Contributor
Male
58 Posts

A domain would have some kind of API around it, though the chances are this is in the form of Application Services ...

So from your (presumably) web service API, you would call Application Services, which themselves would coordinate Domain Events or Domain Commands, which would then deal with the interactions with your Domain

Page 1 of 1 (2 items) | RSS