Find Jobs
Hire Freelancers

Golang and Redis assignment -- 2

₹1500-12500 INR

Closed
Posted over 2 years ago

₹1500-12500 INR

Paid on delivery
Golang - Problem statement At our eCommerce company we are using a mapping service, lets say google maps or open street maps for reverse geo location i.e from lat,lng of a user get his address. From his full address we are mainly using pin code, and not the actual address. So for us pincode is only important. Since we are getting a huge amount of traffic we cannot always use maps api, as there is always a cost associated with calling the map api. So we need to start caching data. Since we are operating in fixed amount cities, we can ideally build our own internal database of lat,lng to pincode mapping. This way we don't need to always call map api and we can reduce costs over time. Proposed solution 1. Store lat, lng of user to his pincode in redis. [login to view URL] 2. Define a threshold, lets say 1km inside which we assume that pincode won't change. 3. When we want to rev geo code, we first check if we have pin code already available in redis cache and we simply show user pin code from our cache. Using this function [login to view URL] See if you can build a service to implement this. Also think of any edge cases which might break in the above solution, and any workarounds for the same
Project ID: 32929649

About the project

1 proposal
Remote project
Active 2 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

About the client

Flag of INDIA
Pune, India
0.0
0
Member since Feb 14, 2022

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.