How to effectively implement an algorithm [closed]

流过昼夜 提交于 2019-12-21 21:53:47

问题


We've recently worked with a mathematician to build us an algorithm. The algorithm will look at click data and will continuously update data associated with the user, the content, and the content's category and then pair the user with relevant content.

With that said, I have never implemented an algorithm before but I'm guessing that our current environment (PHP, MySQL) is not entirely suitable for continuously crunching and updating data.

Can anyone give me feedback on whether the following approach is on the right track?

  • Write algorithm in java (or other compiled language) for best performance
  • Store user, content, and category data on a NoSQL server (or use memcache)
  • Use Gearman (or equivalent) to submit click/user data to a job server
  • Run jobs on separate worker server that contains the algorithm
  • Update user, content, category data

Can you recommend articles that explain how to implement algorithms most efficiently?

Thanks!

来源:https://stackoverflow.com/questions/15227704/how-to-effectively-implement-an-algorithm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!