dongyi2889 2015-10-17 18:01
浏览 41
已采纳

PHP Gearman工人等效于GO?

I'm working on one project which is processing data. Every 5 minutes cron executes go script which is doing all job. One part of job is taking a little more performance and more important, it's taking to much time so I would like to take this part of proccess and put in separate go script. This script would receive proccess_id and do that stuff while main job can continue and important, it would not wait that background go script finishes. It's not required that background job call me back when it's done (that info would be saved in db).

That kind of situation in PHP would be solved by gearman worker which you call, send data and you can contiue with your job while gearman is processing data by himself in background

Is there any similar in go lang which can also be called and not over http?

Thank you

  • 写回答

1条回答 默认 最新

  • 普通网友 2015-10-17 18:03
    关注

    You can use the go bindings for gearman. Check it out here:

    https://github.com/mikespook/gearman-go

    This is linked from the downloads section of the main gearman site.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大