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

1 Answer 1

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

1
  • This configuration element is specific to Experience Manager which might not be used here at all. The same applies to the referenced documentation section... Sep 4, 2015 at 9:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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