Hi devs,

After looking in to the code of i was able to implement a POC of InMemory
Message store for the Synapse with a simple redelevery processor.

I'll explain the current implementation.

Message Store is a top level element. And It has a associated redelivery
processor .
I'm assuming there can be Multiple implementations of Message stores so i m
having an abstraction of Message Store.

My current implementation is a InMemory One. and its associated with
failures of endpoints.
End point can point to a message store ,so on Fault the Messages will get
stored with the endpoint details.

Redelivery processor will unstore the Messages from the Message store and
try to redeliver it with original
endpoint (current re delevery policy is a simple re try interval).

Since in accual industry senarios due to the Message load is high inMemory
message store can cause high memory
usage that can cause system to become unstable. So i'm thinking of limiting
the numbers of Messages for the InMemory Store.

WDYT ? i m happy to hear better solutions for the Memory issue that i
explaied above.

In a persisting Message store i'll have to remove un nessory memory
refferences like SynapseEnvinment , Axis2Context.(in case of serialsing the
Message)
But in Inmemory case it doest seems like removing them will add much of an
advantage since thay just are references.

GSoC2010 coding officialy starts on 24th of May i'll try to  provide my 1st
patch before that.

i m attching the sample synapse configuration that i'm using to test my
implementaion

thanks,
/Charith
-- 
Charith Dhanushka Wickramarachchi
http://charithwiki.blogspot.com/
<!--
  ~  Licensed to the Apache Software Foundation (ASF) under one
  ~  or more contributor license agreements.  See the NOTICE file
  ~  distributed with this work for additional information
  ~  regarding copyright ownership.  The ASF licenses this file
  ~  to you under the Apache License, Version 2.0 (the
  ~  "License"); you may not use this file except in compliance
  ~  with the License.  You may obtain a copy of the License at
  ~
  ~   http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~  Unless required by applicable law or agreed to in writing,
  ~  software distributed under the License is distributed on an
  ~   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  ~  KIND, either express or implied.  See the License for the
  ~  specific language governing permissions and limitations
  ~  under the License.
  -->

<!-- Simple content based routing (CBR) of messages -->
<definitions xmlns="http://synapse.apache.org/ns/2010/04/configuration";>
    <!-- filtering of messages with XPath and regex matches -->
	<messageStore name="foo">
		<redelivery>
			<interval>3000</interval>		
		</redelivery>
 	</messageStore>
    <filter source="get-property('To')" regex=".*/StockQuote.*">
        <send>
            <endpoint onFault="foo">
                <address uri="http://localhost:9000/services/SimpleStockQuoteService";>		
			<suspendDurationOnFailure>5</suspendDurationOnFailure>
		</address>		
            </endpoint>
        </send>
        <drop/>
    </filter>
    <send/>
</definitions> 
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@synapse.apache.org
For additional commands, e-mail: dev-h...@synapse.apache.org

Reply via email to