Jiwa Web API and Redis  Topic is solved

Discussions relating to the REST API of Jiwa 7.

Jiwa Web API and Redis

Postby SBarnes » Tue Jul 10, 2018 10:08 am

Hi Mike,

In doing some experimentation with the use of Redis as a possible choice for Session Management locally and with Azure it will complain about trying to serialise any object that is not annotated as [Serializable], which of course none of the API DTO objects are marked as, would there be any way of having this done as part of the build process?
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191

Re: Jiwa Web API and Redis  Topic is solved

Postby Mike.Sheen » Tue Jul 10, 2018 7:48 pm

Hi Stuart,

This should be trivial for us to do - logged as improvment DEV-6746 and should be in the next build.

Mike
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2583
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 807

Re: Jiwa Web API and Redis

Postby SBarnes » Wed Jul 11, 2018 10:05 am

Hi Mike,

Thanks, I thought it would be fairly easy to do.

Having read your development note, whilst I'd have to double check if it happens on Azure Redis, I can say with absolute certainty that it happens on Redis locally under windows, which means it will be a development issue if local Redis is used for development purposes with the intention of moving to azure eventually and avoiding the need for the Azure service during development i.e. cost.

By the way if anyone is looking to make configuring Redis easy you can set up app settings such as

Code: Select all
    <add key="REDIS_HOST" value="127.0.0.1" />
    <add key="REDIS_PORT" value="6379" />
    <add key="REDIS_KEY" value="" />
    <add key="REDIS_SSL" value="false" />


and then set the provider connection details like this

Code: Select all
 <sessionState mode="Custom" customProvider="RedisSessionStateStore">
      <providers>

        <add name="RedisSessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="REDIS_HOST" port="REDIS_PORT" accessKey="REDIS_KEY" ssl="REDIS_SSL" />   
 
      </providers>
    </sessionState>   
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1696
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 191


Return to REST API

Who is online

Users browsing this forum: No registered users and 3 guests