agourlay / omnibus

An HTTP-friendly persistent message bus.
Apache License 2.0
70 stars 4 forks source link

Topic's name should not be represented as String in internal API #17

Closed agourlay closed 10 years ago

agourlay commented 10 years ago

Using String for topic's name introduce ugly code and potential bugs due to lack of input validation.

Create a case class TopicPath that would contain a list of segments and a toString method to produce the printed version.

The topic name coming from spray interface should be validated and serialized into TopicPath as soon as possible.

All actors should then use TopicPath in their API and state.