Click here to Skip to main content
14,266,113 members

Design and Architecture

 
AnswerRe: How to design class for hierarchical data? Pin
jschell13-Apr-19 6:39
memberjschell13-Apr-19 6:39 
GeneralRe: How to design class for hierarchical data? Pin
Gerry Schmitz14-Apr-19 7:48
mveGerry Schmitz14-Apr-19 7:48 
GeneralRe: How to design class for hierarchical data? Pin
jschell21-Apr-19 6:39
memberjschell21-Apr-19 6:39 
QuestionWeb API Design Pin
Mycroft Holmes4-Mar-19 20:46
memberMycroft Holmes4-Mar-19 20:46 
AnswerRe: Web API Design Pin
Nathan Minier5-Mar-19 1:59
professionalNathan Minier5-Mar-19 1:59 
GeneralRe: Web API Design Pin
Mycroft Holmes5-Mar-19 11:16
memberMycroft Holmes5-Mar-19 11:16 
GeneralRe: Web API Design Pin
Nathan Minier6-Mar-19 1:24
professionalNathan Minier6-Mar-19 1:24 
QuestionManaging relationship in microservices world Pin
Mart_2k425-Feb-19 6:44
memberMart_2k425-Feb-19 6:44 
I have this that I want to create an API for and would like to do so using micro services.

I have people that are part of teams. Each team has a backlog with workitems in it.

I was thinking of creating the following microservices

/Person
    GET - Return a list of person
    POST - Create a new person

/Person/{PersonId}
    GET - Return the person represented by PersonId
    PUT - Update person represented by PersonId
    DELETE - Delete person represented by PersonId


/Team
    GET - Return a list of teams
    POST - Create a new team

/Team/{TeamId}
    GET - Return team represented by TeamId
    PUT - Update team represented by TeamId
    DELETE - Delete team represented by TeamId

Would do the same for Backlog and WorkItem.

The question I can't decide is where should the code go that returns the people in a given team? I mean should I have something like /team/12/members with a GET method that return the people in that team? That would make sens, but then, it would mean that the Team service would need access to the Person database, which violate microservice pattern.

Same, where would the code go to add a workitem to a backlog? /backlog/4/workitem with a POST looks reasonable to me..

So what is the normal way to deal with 0 to many relationship in the microservice world?

Any help would be appreciated!
Thanks
AnswerRe: Managing relationship in microservices world Pin
Pete O'Hanlon25-Feb-19 11:45
protectorPete O'Hanlon25-Feb-19 11:45 
AnswerRe: Managing relationship in microservices world Pin
Gerry Schmitz25-Feb-19 17:57
mveGerry Schmitz25-Feb-19 17:57 
AnswerRe: Managing relationship in microservices world Pin
Nathan Minier27-Feb-19 1:52
professionalNathan Minier27-Feb-19 1:52 
AnswerRe: Managing relationship in microservices world Pin
Eddy Vluggen27-Feb-19 2:33
mveEddy Vluggen27-Feb-19 2:33 
AnswerRe: Managing relationship in microservices world Pin
Bohdan Stupak1-Mar-19 3:38
professionalBohdan Stupak1-Mar-19 3:38 
QuestionNode.js : Non-blocking thing Pin
Eytukan16-Dec-18 23:10
memberEytukan16-Dec-18 23:10 
AnswerRe: Node.js : Non-blocking thing Pin
Eddy Vluggen17-Dec-18 0:05
mveEddy Vluggen17-Dec-18 0:05 
GeneralRe: Node.js : Non-blocking thing Pin
Eytukan17-Dec-18 1:34
memberEytukan17-Dec-18 1:34 
GeneralRe: Node.js : Non-blocking thing Pin
Eddy Vluggen17-Dec-18 1:39
mveEddy Vluggen17-Dec-18 1:39 
GeneralRe: Node.js : Non-blocking thing Pin
Eytukan17-Dec-18 1:49
memberEytukan17-Dec-18 1:49 
GeneralRe: Node.js : Non-blocking thing Pin
Eddy Vluggen17-Dec-18 1:55
mveEddy Vluggen17-Dec-18 1:55 
GeneralRe: Node.js : Non-blocking thing Pin
Eytukan18-Dec-18 19:49
memberEytukan18-Dec-18 19:49 
GeneralRe: Node.js : Non-blocking thing Pin
Eddy Vluggen19-Dec-18 0:57
mveEddy Vluggen19-Dec-18 0:57 
GeneralRe: Node.js : Non-blocking thing Pin
Eytukan19-Dec-18 21:28
memberEytukan19-Dec-18 21:28 
GeneralRe: Node.js : Non-blocking thing Pin
Eddy Vluggen20-Dec-18 0:21
mveEddy Vluggen20-Dec-18 0:21 
GeneralRe: Node.js : Non-blocking thing Pin
Eytukan20-Dec-18 0:54
memberEytukan20-Dec-18 0:54 
AnswerRe: Node.js : Non-blocking thing Pin
Eytukan19-Dec-18 23:11
memberEytukan19-Dec-18 23:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.