Hi Shankar,

+1 i agree, as you mentioned we do deliver to subscriptions through an
interface.

For the moment we have some delivery related semantics such as,

   - Wildcard processing (differentiation between AMQP wildcards vs MQTT
wildcards) when distributing messages to  subscriptions.
   - Message delivery strategies (subscription ack handling being different
in MQTT)

which gets the core to depend on protocol specifics when delivery is
handled. We're in the process of figuring out ways to get rid of the
protocol specific routines.

Meanwhile for the start we wanted to check on the possibility of addressing
the circular dependencies. Ideally i do agree the core should be totally
independent of protocol logic.

Thanks,
Pamod

On Tue, Feb 9, 2016 at 4:36 PM, Selvaratnam Uthaiyashankar <[email protected]
> wrote:

>
>
> On Tuesday, February 9, 2016, Pamod Sylvester <[email protected]> wrote:
>
>> Hi All,
>>
>> Currently transports (AMQP,MQTT) in MB are coupled with the andes core
>> (same bundle). We're in process of identifying a way to abstract the
>> transports from its core, so that we bring in a pluggable architecture
>> which would allow plug in the relevant transport to the broker on demand.
>> This will help to featherweight MB.
>>
>> The abstract message flow would look like the following,
>> [image: Inline image 2]
>> As depicted in the above diagram, if the transport is abstracted into a
>> separate bundle, there will be circular dependency between the core and the
>> transport. i.e when messages are published 'transport' will need to call
>> services in the 'core' and when messages are distributed to the subscribers
>> the 'core' will need to call services in the 'transport'
>>
>
> When we have multiple transports, how the core knows which transport to
> call to distribute messages to subscribers? Isn't the core suppose to call
> an "interface", so that the core doesn't know about any concrete
> transports? If so, there won't be any circular dependencies, right?
>
>
>
>>
>> Currently we're in the process of identifying a solution for the circular
>> dependency, making the cardinality of one of the referencing service
>> optional [1] could be a solution, but we need to understand whether there's
>> a better approach for this.
>>
>> WDYT ?
>>
>> [1]
>> http://docs.spring.io/osgi/docs/current/api/org/springframework/osgi/service/importer/support/Cardinality.html
>>
>> Thanks,
>> Pamod
>> --
>> *Pamod Sylvester *
>>
>> *WSO2 Inc.; http://wso2.com <http://wso2.com>*
>> cell: +94 77 7779495
>>
>
>
> --
> S.Uthaiyashankar
> VP Engineering
> WSO2 Inc.
> http://wso2.com/ - "lean . enterprise . middleware"
>
> Phone: +94 714897591
>
>
> _______________________________________________
> Architecture mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
*Pamod Sylvester *

*WSO2 Inc.; http://wso2.com <http://wso2.com>*
cell: +94 77 7779495
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to