java - IP库的建设。
PHPz
PHPz 2017-04-17 17:27:43
0
1
410

现有的ip库,如淘宝ip库,存在每个用户的访问频率需小于10qps的限制。项目组计划建设一个自己的ip库,考虑到如下几个问题:
1、ip数据源的获取
2、目前已知的ip数据量大概有3.3亿,存储这些数据,如何设计表结构
请问有哪些比较好的思路?

PHPz
PHPz

学习是最好的投资!

reply all(1)
Ty80
  1. This is not that easy. The only place to check is to check the information registered by authoritative organizations, such as whois, asn, and bgp. But if you find out that it is assigned to Hebei Telecom, it may not be used by Hebei Telecom. There is no use in finding out, it must be verified. Go read Gao Chunhui’s article on IP matters

  2. IP libraries are basically stored according to IP segments. It is impossible to store one line per line. One library can contain dozens or hundreds of megabytes at most


You can just buy an offline library. The number of QPS depends on how many machines you are willing to build. If you set up a service by yourself, it is easy to achieve thousands of QPS on a single machine

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template