sockets - Sending messages over an unreliable network in JAVA -


i need send continuous flow of messages (simple textmessages timestamp , x/y coordinates) on wireless network moving computer. there lot of these short messages (like 200 per sec) , unfortunately network connection unreliable since sending device leave wlan area time time... when connection not available, upcoming messages should buffered until connection again. order of transmitted messages not matter, since contain timestamp, messages must transferred.

what simple reliable method sending these telegrams? possible use "plain" tcp or udp socket connection? messages buffered when connection temporarily down , send afterwards automatically? or connection loss directly detected , reported, buffer messages , try reconnect periodically on own? libraries netty here?

i thought using broker broker communication (e.g. activemq network of brokers) alternative. overhead big here?! suggest messaging middleware in case?

tcp guaranteed delivery (when it's connected is) - should check if connection went down , put messages in queue while retrying connection. once sees connection dump queue tcp socket.

also tcp keepalive recognition of down connection: http://tldp.org/howto/tcp-keepalive-howto/overview.html


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -