Should nServiceBus messages contain objects or just simple types and strings?

You can send nested data containers within your messages, i. E data transfer objects, but they shouldn't have behavior.

1 Thanks for the quick answer, and it is what my gut feeling was. Could you explain why it is bad to use objects with behaviour so I am not just telling people it is that way because Udi says so. – dang1es Jun 29 at 11:17 Since Udi hasn't answered I'll chip in my 2 cents (hopefully he'll reply as well).

I wouldn't ship a class which contained any behavior because it would be leaking that abstraction between different services. Any changes you want to make to the object would likely necessitate changing both services, also quite undesirable. – RyanR Jul 4 at 23:28.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions