从队列中提供 Java Applet 服务?
我正在寻找一种优雅的方法来创建一个队列来提供批量编译的小程序。 我已经编写了一个 SQL 和 PHP 脚本来处理这个问题,但它在轻度负载下会卡住。 是否有一个现有系统可以处理在 SQL 中获取列表并在每次请求时按降序提供小程序。我也试图在所有服务器端处理这个问题。
诀窍是先获取 file001,然后获取 file002 ++ 等。每次加载网页时都会得到服务。我正在批量创建具有稍微修改过的背景的小程序,并且我正在尝试提供一个从未使用过的小程序,该小程序在队列中等待每次请求页面时加载。
是否有一个小程序服务器我可以调整或者看起来像是需要构建的东西?
I'm looking for a elegant way to create a queue for serving up batch compiled applets.
I have hacked together a SQL and PHP script to handle this but it chokes under mild loads.
is there an existing system that can handle taking a list in SQL and serve the applets in descending order each time it is requested. I'm also trying to handle this all server side as well.
The trick would be getting file001, then file002 ++ ect. to get served each time a web page is loaded. I'm batch creating applets that has a slightly modified background and I'm trying to serve a never been used applet waiting in the queue to load each time the a page is requested.
Is there a applet server I can tweak or does look like something that needs to be built?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,我从来没有听说过“批量编译小程序服务器”。
您能否更详细地解释一下为什么您认为这是必要的?
为什么不直接使用同一个类并将参数传递给它呢?
也就是说,您可以使用 ant 和/或 CruiseControl 等很好地进行按需编译。您可以将预编译的小程序放入一个目录中。然后你的 PHP 前端只需要跟踪它最后交付的小程序,并在下一次获取下一个。
不过,这对我来说听起来相当复杂;所以也许你可以解释一下你的动机。
特别是,为什么每次重新加载时都需要一个新的小程序?这样岂不是比较混乱吗?为什么不为每个变体提供一个链接,以便用户可以选择?
No, I have never heard of a "batch compile applet server".
Could you maybe explain in more detail why you feel this is necessary?
Why don't you just use the same class and pass parameters to it?
That said, you can do compilation on demand quite well with e.g. ant and / or CruiseControl. You could put the pre-compiled applets into a directory. Then your PHP frontend just needs to keep track of what applet it delivered last, and fetch the next one the next time.
Still, this sounds rather complicated to me; so maybe you could explain your motivation.
In particular, why do you want a new applet on every reload? Would that not be rather confusing? Why not offer a link for each variant, so the user can choose?