polling

Polling database for updates from C# application

与世无争的帅哥 提交于 2019-12-24 21:14:12
问题 I'm attempting to create my first "real" C# application - a small pet project to help schedule peer reviews at work. Due to the insane amount of process/bureaucracy involved in implementing anything new - as well as the fact that I'm doing this away from managements eyes, on my own time, for the time being - I'm going to be writing this with an MS Access MS Jet Engine backend (i.e. an access mdb file) due to restrictions on how I can deploy this application to my co-workers. My question is:

Polling in the cloud

眉间皱痕 提交于 2019-12-24 19:55:49
问题 I am creating an app, which will poll a rabbitmq queue for messages. I have three choices: Console app, which listens for new messages Windows service, which listens for new messages Web API, which listens for new messages In normal circumstances I would choose a windows service because it is a long running process and a TCP connection is available to the RabbitMQ server. However, how would this work if we decided to move the application to the cloud in future? The way that I understand it is

Is it possible to determine the size of the default framebuffer using OpenGL only?

孤人 提交于 2019-12-24 05:16:09
问题 I'm currently developing a game engine/framework for a game I intend to develop. I'm designing the system to be as decoupled as possible via abstract classes and dependency injection. Ideally, I'm aiming for each sub-system to not depend on other parts of the engine. In my rendering system, I'd like to provide the ability to reset the viewport and scissor/clipping area to the size of the currently bound target for rendering (Be it an OpenGL FrameBuffer, Direct3D RenderTarget or the default

Is there a way to poll several addresses using Mule's HttpPollingConnector?

喜夏-厌秋 提交于 2019-12-24 01:19:05
问题 I am trying to poll several addresses (URL links) from a list that contains all these addresses using the http polling connector in Mule. Currently, I am only able to poll from one address but I would like to find a way to use this list to iterate the polling for each site. Is there anything built within Mule that provides such function? 回答1: Is composite source what you're looking for? It allows you to have more than one endpoint in the inbound. e.g. from http://www.mulesoft.org

Comet vs Ajax for chatting

痴心易碎 提交于 2019-12-24 00:41:54
问题 My site needs a chat room, and I'm also looking to implement a facebookesque person to person chat system. What is most cost-efficient/performant (purely in terms of bw and server) for me. A regular 1 second poll ajax chat, or a comet solution. Thanks. 回答1: Comet would typically result in lower bandwidth usage (assuming less than 1 chat message per second per chat on average), owing to the fact that it will only query the server once per message sent. It would typically result in more

Java poll on network connections

倾然丶 夕夏残阳落幕 提交于 2019-12-23 19:34:10
问题 I am writing a program in Java where I have opened 256 network connections on one thread. Whenever there is any data on a socket, I should read it and process the same. Currently, I am using the following approach : while true do iterate over all network connections do if non-blocking read on socket says there is data then read data process it endif done sleep for 10 milli-seconds done Is there a better way to do the same on Java ?? I know there is a poll method in C/C++. But after googling

Interthread communication

China☆狼群 提交于 2019-12-23 02:59:13
问题 The following question is about the unity game engine, but it could relate to any program trying to send data to a main thread, such as the UI thread. I am processing some data on a separate thread (position data a read asyncrously from a socket). However, I need to act on this data on the main thread (a game object's transform can only be accessed from the main thread). The approach I have in mind is to create a thread-safe queue and follow the producer-consumer pattern. The thread would

trigger a script when mailbox recieves mail?

我怕爱的太早我们不能终老 提交于 2019-12-23 01:44:06
问题 I want to process a particular mailbox when it receives mail, I know I could have cron check every n minutes for any mail, but wondering if there's a way to "listen" for mail rather than continually polling. 回答1: Try a .forward file You can pipe the message into any program or script you want, but also check if procmail can do what you want. 回答2: Depending on your mail server, it may be possible to actually have any incoming message be delivered to a process. Either in a .forward or by

chat application on appengine

こ雲淡風輕ζ 提交于 2019-12-22 18:27:26
问题 I am willing to implement a chat website on App Engine. But I found that App Engine will not allow me to go with server push. (as it will kill the response after 30 sec). So whats the other method that can be used? Will polling cause bad user experience? Meaning will the user have to wait for some time to retrieve new messages from the server? What will be the ideal polling interval? If you use very small polling intervals, will my bandwidth get exhausted? Will I suffer performance problems?

基于dwr2.0的Push推送技术详细解析以及实例

£可爱£侵袭症+ 提交于 2019-12-22 14:29:55
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> DWR从2.0开始增加了push功能,也就是在异步传输的情况下可以从Web-Server端发送数据到 Browser. 我们知道,Web的访问机制天生是设计用来pull数据的,也就是只允许Browser端主动发起请求,server 是被动的响应.不允许Server向Browser发出一个connection请求,也就是说没有为server向Browser push数据提供设计实现. 虽然没有直接的实现方法,却可以使用一些变通的方式完成类似的功能: 1. Polling Polling其实就是轮询,是通过Browser在一个相对短的间隔时间内,反复向Server发出请求,然 后更新页面,这种方式没有什么新鲜的,只是需要浏览器端做一些工作就可以,哪怕没有太多服务器端的配 置也没问题.轮询的方式对于服务器来说会依据不同的访问间隔而产生不同程度的额外负载,因为每次访 问都有重新建立连接的过程. 2. Comet Comet方式通俗的说就是一种长连接机制(long lived http).同样是由Browser端主动发起请 求,但是Server端以一种似乎非常慢的响应方式给出回答,这样在这个期间内,服务器端可以使用同一个 connection把要更新的数据主动发送给Browser.Comet又有很多中实现方式