these days, i've been working on a solution that would allow us to geolocate users through their ip address, with our nextjs project hosted on aws ecs in a docker container. with the primary focus...
我正在开发一个赢家斗地主的解决方案,通过ip地址在aws ecs的docker容器中定位用户。主要挑战包括避免第三方调用、保护客户端逻辑和定期自动同步数据库。我选择使用maxmind的.mmdb数据库,并通过geoipupdate自动下载。利用next.js的服务器端功能获取用户ip,并在docker中使用supercronic定期更新数据库。