Python Forum

Full Version: Very difficult challenge for me
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys. I have this problem to get a new job. there are 3 questions. Two I solved. But there is one ( below) that I have no idea how to do this. Somebody can help me?


Dealing with network issues everyday, latency is our biggest problem. Thus, your challenge is to write a new Geo Distributed LRU (Least Recently Used) cache with time expiration. This library will be used extensively by many of our services so it needs to meet the following criteria:

1 - Simplicity. Integration needs to be dead simple.
2 - Resilient to network failures or crashes.
3 - Near real time replication of data across Geolocation. Writes need to be in real time.
4 - Data consistency across regions
5 - Locality of reference, data should almost always be available from the closest region
6 - Flexible Schema
7 - Cache can expire

Thanks in advance.
Please post a minimal code sample (in python code tags) for the specific part your stuck on, explain what you expect to happen and what is actually happening and any errors received in error tags.