4

We have two serves running an OData CD Web Service behind a load balancer (each pointing at the same clustered Broker DB). Our web apps are configured to get an Access Token before making requests to the actual service.

So what I want to understand is... do I need to make sure that the Web App requests the Access Token and the Data from the same server, or is the Token stored in the Broker DB so that it can be shared between both Odata Web Services

3

The data can be shared across machine using following:

In the cd_storage_conf.xml, in session wrappers give the same machine name across all the servers that are sharing the access token.

Given below is the sample sessionwrapper. Here, you can replace xyz with some meaningful machine name and then data from all the servers will be stored in session broker database with that machine name.

<Wrappers>
            <Wrapper Name="SessionWrapper">
                <Timeout>120000</Timeout>
                <MachineName>xyz</MachineName>
                <Storage Type="persistence" Id="db-session-webservice" 

dialect="MSSQL"Class="com.tridion.storage.persistence.JPADAOFactory"> 
... 
</Storage>

</Wrapper>          
</Wrappers>

Reference: Tridion documentation for load balancing

|improve this answer|||||
  • This configuration element is specific to Experience Manager which might not be used here at all. The same applies to the referenced documentation section... – Bjørn van Dommelen Sep 4 '15 at 9:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.