Python Forum
Very difficult challenge for me - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Very difficult challenge for me (/thread-17193.html)



Very difficult challenge for me - cristfp - Apr-01-2019

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.


RE: Very difficult challenge for me - Yoriz - Apr-01-2019

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.