doubutao6216 2013-08-26 14:55
浏览 90

cURL的大数据[关闭]

I own VPS server, I want to do something with my server which I have Big data about 15K usernames.

What I need, to send all usernames as cURL request with: website.com/getaccount.php?username= every minute.

so what is the solution for that case .. I don't want to make it with Cron because it will take 15K jobs and that is very bad.

in which language could I optimize 15K users ? bash ? perl ? php ? and if I can make it separate files and each file content 5K users.

Please give me a solution, thanks alot ..

  • 写回答

4条回答 默认 最新

  • douji5397 2013-08-26 15:04
    关注

    Does all usernames change from minute to minute? If no, then it's useless to send them all. Only send differencies (deltas) like 'deleting user1' or 'adding user2' or 'renaming user1 to user2'

    Also, If I understand your example correctly, you want to make a cURL request for each username, which means 15K request every minute. For me that look like a waste of resources similar to a dDos attack. I hope that is not what you want to acheive on your own server.

    Maybe try to reduce your data amount to only relevant data and batch all that data in a single cUrl request!

    15K isn't that big, but you need to handle it correctly!

    评论

报告相同问题?

悬赏问题

  • ¥20 要这个数学建模编程的代码 并且能完整允许出来结果 完整的过程和数据的结果
  • ¥15 html5+css和javascript有人可以帮吗?图片要怎么插入代码里面啊
  • ¥30 Unity接入微信SDK 无法开启摄像头
  • ¥20 有偿 写代码 要用特定的软件anaconda 里的jvpyter 用python3写
  • ¥20 cad图纸,chx-3六轴码垛机器人
  • ¥15 移动摄像头专网需要解vlan
  • ¥20 access多表提取相同字段数据并合并
  • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
  • ¥20 Java-Oj-桌布的计算
  • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow