Re: DDD and cross domain AR references for UI

"Thomas Presthus [email protected] [domaindrivendesign]" <[email protected]> Tue, 28 Jul 2015 11:03:49 +0200
Newsgroups gmane.comp.programming.domain-driven-design
Organization Erus Encodia AS
Message-ID <[email protected]>
I'd look into composite frontends and autonomous business components.


It sounds like the rendering of your profile part belongs to the social 
bc that owns the data.


If you still want to integrate the bcs through REST endpoints you could 
e.g. create a model for describing how data should be rendered, but this 
can get complex very quickly.


It's also possible that you're missing a context or an aspect in your 
model.


Thomas


On 28.07.2015 01:41, Douglas Reith [email protected] 
[domaindrivendesign] wrote:
> Thanks Thomas.
>
> The Ticket BC has no behaviour relating to whether the TicketHolder 
> is
> a User or a Company.
>
> My worry (or DDD misunderstanding) is that when the front end fetches
> the Ticket, e.g. `GET /tickets/:id` the TicketHolder will be just an
> ID and therefore it will not know the next resource to fetch, i.e.
> `GET /companies/:id` or `GET /users/:id`. The TicketHolder can
> definitely be represented by a referential ID but that will mean (a)
> that the front end will need to call some sort of Social BC object
> discovery endpoint and (b) it will not be able to supply the end user
> with any affordance relating to whether the TicketHolder is a Company
> or a Profile prior to aforementioned discovery.
>
> Perhaps part of my issue is that a single front end is spanning BCs?
> This is may be a modelling mistake, but it is very beneficial for
> maintenance and agility.
>
> On 28 July 2015 at 07:02, Thomas Presthus [email protected] [1]
> [domaindrivendesign] <[email protected] [2]> wrote:
>
>>  
>>
>> Does the Ticket BC need to know whether the TicketHolder is a User
>> or
>> Company?
>>
>> If not, could the TicketHolder in Ticket BC simply be a referential
>> id
>> to the entity in your social BC, and the social BC render the
>> appropiate
>> profile knowing which type of holder it is?
>>
>> --
>>
>> Thomas Presthus
>
> 
>
> Links:
> ------
> [1] mailto:[email protected]
> [2] mailto:[email protected]
> [3]
> 
> https://groups.yahoo.com/neo/groups/domaindrivendesign/conversations/messages/24688;_ylc=X3oDMTJxM242OWswBF9TAzk3MzU5NzE0BGdycElkAzgxMTY5MjMEZ3Jwc3BJZAMxNzA1MDA3MTgxBG1zZ0lkAzI0Njg4BHNlYwNmdHIEc2xrA3JwbHkEc3RpbWUDMTQzODA2NDI4NA--?act=reply&messageNum=24688
> [4]
> 
> mailto:[email protected]?subject=Re%3A%20%5Bdomaindrivendesign%5D%20DDD%20and%20cross%20domain%20AR%20references%20for%20UI
> [5]
> 
> mailto:[email protected]?subject=Re%3A%20%5Bdomaindrivendesign%5D%20DDD%20and%20cross%20domain%20AR%20references%20for%20UI
> [6]
> 
> https://groups.yahoo.com/neo/groups/domaindrivendesign/conversations/newtopic;_ylc=X3oDMTJlaTUwMnM0BF9TAzk3MzU5NzE0BGdycElkAzgxMTY5MjMEZ3Jwc3BJZAMxNzA1MDA3MTgxBHNlYwNmdHIEc2xrA250cGMEc3RpbWUDMTQzODA2NDI4NA--
> [7]
> 
> https://groups.yahoo.com/neo/groups/domaindrivendesign/conversations/topics/24686;_ylc=X3oDMTM2dmhmcmx1BF9TAzk3MzU5NzE0BGdycElkAzgxMTY5MjMEZ3Jwc3BJZAMxNzA1MDA3MTgxBG1zZ0lkAzI0Njg4BHNlYwNmdHIEc2xrA3Z0cGMEc3RpbWUDMTQzODA2NDI4NAR0cGNJZAMyNDY4Ng--
> [8]
> 
> https://groups.yahoo.com/neo/groups/domaindrivendesign/info;_ylc=X3oDMTJlOWVqZXVwBF9TAzk3MzU5NzE0BGdycElkAzgxMTY5MjMEZ3Jwc3BJZAMxNzA1MDA3MTgxBHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTQzODA2NDI4NA--
> [9]
> 
> https://groups.yahoo.com/neo/groups/domaindrivendesign/members/all;_ylc=X3oDMTJmaWYwZG1jBF9TAzk3MzU5NzE0BGdycElkAzgxMTY5MjMEZ3Jwc3BJZAMxNzA1MDA3MTgxBHNlYwN2dGwEc2xrA3ZtYnJzBHN0aW1lAzE0MzgwNjQyODQ-
> [10]
> 
> https://groups.yahoo.com/neo;_ylc=X3oDMTJkaXQzbmdsBF9TAzk3NDc2NTkwBGdycElkAzgxMTY5MjMEZ3Jwc3BJZAMxNzA1MDA3MTgxBHNlYwNmdHIEc2xrA2dmcARzdGltZQMxNDM4MDY0Mjg0
> [11] https://info.yahoo.com/privacy/us/yahoo/groups/details.html
> [12]
> 
> mailto:[email protected]?subject=Unsubscribe
> [13] https://info.yahoo.com/legal/us/yahoo/utos/terms/


-- 


Thomas Presthus


Erus Encodia AS | Erus Consulting
Stalsbergveien 1, 3128 Nøtterøy


http://www.erus.net | +47 450 30 737


------------------------------------
Posted by: Thomas Presthus <[email protected]>
------------------------------------


------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/domaindrivendesign/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/domaindrivendesign/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/