<div>Hi,</div><div><br></div><div>A module level dictionary 'd' and is accessed by different threads/requests in a django web application. I need to update 'd' every minute with a new data and the process takes about 5 seconds. </div>
<div><br></div><div>What could be best solution where I want the users to get either the old value or the new and nothing in between. </div><div><br></div><div>I can think of a solution where a temp dictionary is constructed with a new data and assigned to 'd' but now sure how this works!</div>
<div><br></div><div>Appreciate your ideas.</div><div><br></div><div>Thanks</div>