logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: Documentation for Apache Synapse Cache?
Author
TheoFontane



Joined: 15 May 2013
Posts: 3
Location: Germany, Wiesbaden

PostPosted: Wed 15 May '13 15:25    Post subject: Documentation for Apache Synapse Cache? Reply with quote

Hello,

I am investigating in using Apache Synapse as a simple SOAP cache between the frontend services and the "real" ESB and the backend.

The plan is to cache all the SOAP requests in the cache mediator of Apache Synapse.

Unfortunately, there seems to be no documentation at all about how the cache can be maintained, monitored or even where the cache will be stored if you choose "store on disk".

Does anyone have experiences on where to find any documentation about the caching module?

Thanks in advance for every hint,
Theo
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 16 May '13 16:57    Post subject: Reply with quote

Servus Theo,
there is user guide with an example http://synapse.apache.org/userguide/samples/sample420.html for caching. Also a bit shorter http://synapse.apache.org/Synapse_Samples.html#Cache

I hope it helps.
Back to top
TheoFontane



Joined: 15 May 2013
Posts: 3
Location: Germany, Wiesbaden

PostPosted: Fri 17 May '13 9:22    Post subject: Reply with quote

Thank you for your answer. Unfortunately, this is not enough. I am looking for answers like:
"Where will the cache be stored if I choose "disk" instead of "memory"?"

I just figured out, that "store-to-disk" is not implemented yet, so I assume that this product is not ready for serious usage. Sad
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Fri 17 May '13 9:42    Post subject: Reply with quote

In the docs it says you can store on disc. use implementation type

Code:

<cache [id="string"] [hashGenerator="class"] [timeout="seconds"] [scope=(per-host | per-mediator)]
        collector=(true | false) [maxMessageSize="in-bytes"]>
    <onCacheHit [sequence="key"]>
        (mediator)+
    </onCacheHit>?
    <implementation type=(memory | disk) maxSize="int"/>
</cache>


See http://synapse.apache.org/userguide/mediators.html#Cache
Back to top
TheoFontane



Joined: 15 May 2013
Posts: 3
Location: Germany, Wiesbaden

PostPosted: Fri 17 May '13 10:03    Post subject: Reply with quote

Yes, but if you use this setting, you get the error message, that the disk caching has not been implemented yet. And there is no documentation about where the data will be cached if "disk" is chosen (and if it would work).
Back to top


Reply to topic   Topic: Documentation for Apache Synapse Cache? View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules