Skip to content

spike-rx/PersonsFinder_2

Repository files navigation

Solution 1

using Haversine formula find the scope min longitude - max longitude, min latitude - max latitude

advantage: without any package or database

disadvantage: poor performance

Solution 2

Introduction

Using Redis for caching and saving location Redis Geospatial is a module for processing geospatial data

Even with billions of data, only the first time query will query the database, after the first time query saves the cache Redis will respond ASAP Should also do data persistence in case of redis restart

Depending on the system QPS may need a redis-cluster in the future

advantage: good performance, fast response disadvantage: extra cost, extra learning cost

a608b0fb443ae08822f5c85bddc636a7.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages