dongyi2889 2015-10-17 10: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 10: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.

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

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部