As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am a an amateur in Vb.NET programming, or in this case any programming language that needs push server notification.
I am currently making an application which requires the server to send a notification if Client A is making a task assigned to Client B.
I can only imagine to create another application on the server which up all the time and listens to any changes happening on the database, and then if there any changes send a notification to assigned user.
Is there any better approach?
Can someone point me to a good resource?
Any help will be greatly appreciated.
Thank you.
This has been covered already here [asp.net http server push to client], which should give you some good info about adding a push service to your project.
On a related question, John Saunders, says:
"Unfortunately, that's just not the way the web is designed. Rather,
it's set up so that a user asks for a specific resource and the web
server provides it if it can. One request always returns exactly one
response.
This means that you need to simulate the push service by creating a
heartbeat between a rendered browser page and your server. The web
page will have javascript that tells the browser to periodically ask
the server, "Do you have any changes for me?" You can implement that
in ASP.Net AJAX using the timer control, but it can be tricky to get
it right. There are lots of little gotchas you need to watch out for."
Some other realted websites & questions:
http://www.strathweb.com/2012/05/native-html5-push-notifications-with-asp-net-web-api-and-knockout-js/
Instant notifications like Facebook
Server-Push Technology (aka. "COMET", "http server push", "websockets")
AJAX Server Push
One thing I know about push services, is that it uses a lot of resource. Also look at Reverse AJAX.
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm coding an app in XCode4, and am approaching a part of the development in which I use web services to connect to a MySQL database to both pull current and write new user account information.
Just wondering if this will work in the iOS Simulator that comes with the XCode bundle?
You don't need an answer for this question, as you have it right there in the same question.
I really think you should take home the following:
A web-service is an interface to a (possibly) remote entity that will answer to you with data/calculations etc.
There are two sides to a web-service: (1) the server side which is the real web-service, and (2) the client side which are the web-service libraries that you use to connect and use/get data from
A web-service to a MySQL database will encapsulate/hide the database from you. This is usually so that you don't need to deal with the query language/data conversion/relationships/etc. Keep in mind that there's no MySQL over web-services (out-of-the-box), so someone has to connect those two for you.
A MySQL server can run on your computer, on a virtual machine on your computer or on a remote computer.
The web service can run on the same places, but not necessarily on the same place
That said the iOS Simulator doesn't need to run the web-service or the MySQL server, It only needs to connect to them. As such they may be wherever, you just need to be able to connect to them.
The simulator is able to make HTTP(S) requests, so of course web services would work.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
in the last weeks I have built a small notification system using HTML5 Websockets and node.js with socket.io.
There are still some things that I haven´t solved, yet.
I have read that realtime notification using node.js should be the best performance solution vs long polling etc because of non blocking i/o operations.
Now assume we have to notify friends of this user. Something like "I have bought a new iphone". How do I teach node.js to realtime notify specific user 1:n? Till know I have only got sending and receiving message 1-1 communication.
This means I have to go check against facebook api friendlist first and find out which facebook_id is connected with which socket_id somehow. Then check the users privacy settings, if he would like to receive notifications and then send and save it into the database.
So to me this somehow seems not to be the most effective solution...
At the moment I would use mongo-db native driver for node.js and have db operations done by serversided javascript.
I still need to implement facebooks javascript sdk to get the friendslist, but I would have trouble with the users privacy settings. Doesn´t this destroy all the advantages of non-blocking I/O?
How do you actually solve this. To me, it seems very complex.
Thank you very much.
You shouldn't go to Facebook to check friends list and such..
you should cache them, i assume the users are logged in if so the solution
seems to be very easy.
Get the user.
check if the sender is his friend
check if the recipient want to receive the message.
btw, redis is a lot faster.
Edit:
if you are worried that the user data won't be updated
and that's why you do not cache you should check Real-time Updates.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I have a metro application in which am trying to display notifications whenever my service get updated.I tried to read Metro App push notification concepts overview from microsoft website and I observed Push Notifications sample but I did not get proper idea to implement push-notifications in Metro-apps?
Can anyone give me a sample example to implement push notifications in metro apps using HTML5 & JavaScript,really it will helpful to me?
Thank you in advance.
For push notifications, you need a server side component to perform the actual push of the notification. This is performed by your server sending a request to a specific URL -- that URL is obtained from your application which registers with your service. Clearly doing this in a pre-canned way is marginally non-trivial, although the process itself is not.
Details on how to obtain the URL, and how to send a notification to it:
http://msdn.microsoft.com/en-us/library/windows/apps/hh465412.aspx (Getting the URL)
http://msdn.microsoft.com/en-us/library/windows/apps/hh465450.aspx (Sending a notification to the URI)
If, however, you just want to update the tile for your application when it does something when the user is using it:
http://msdn.microsoft.com/en-us/library/windows/apps/hh465439.aspx is a good starting point.
The above links have snippets. There is a fully worked through sample for tiles/notifications on MSDN also:
http://code.msdn.microsoft.com/windowsapps/Push-and-periodic-de225603 (Push)
http://code.msdn.microsoft.com/windowsapps/App-tiles-and-badges-sample-5fc49148 (Local)
I'm also working on the same. Here I'm sharing few links below which might be useful to you.
Prior to this, once read the Guidelines and Checklist for implementing push notifications.
Go through this link for Implementing Windows 8 Push Notifications.
Hope it Helps.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Can someone suggest me a JSON client tool to test my system just like how we use SOAP UI to test web services?
Firefox RestClient addon will do this.
If you're looking for a convenient way to make HTTP calls and then view their responses:
http://code.google.com/p/rest-client/
No, it cannot be used for performance testing or automated testing of any sort as such. I used to use it as a quick way to visually inspect if my service (which happened to talk JSON but could actually have been anything else) is talking correctly.
Here is an example of how one uses it (It's linked to from the previous page):
http://www.flickr.com/photos/subwiz/2865055073/
did you consider/try fiddler ?
it's not open source, but it's free. It also comes bundled with a Firefox extension that lets you monitor all http calls in realtime.
url : http://www.fiddler2.com/fiddler2/
Check out Restty an Open Source tool under Apache 2.0 license. It's a template-based command line tool for accessing RESTful JSON-based Web Services. It can be used for automated testing too.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'm currently running a web-app that will send emails to users when they sign-up, invite friends, and want to reset password. I also will be sending out general marketing email. I have a postfix server set up, but I don't have reverse DNS set up (due to hosting provider limitations). I'm afraid my emails to users will not be delivered. I've tested it and some mail go straight to the Spam box for Gmail.
Instead of this DIY approach, are there good emailing providers out there that can guarantee high deliverability of my emails? I'd rather not have to deal with this myself so I can concentrate on building my app. I looked into Mailchimp but they seem to be a service for bulk mailing and not for individualized emails (in the case of user sign up validation, friend invitation, and reset password). Or am I getting this wrong?
Mailchimp does have a service for transactional mail which they built on top of Amazon SES, you can check that out here.
You can also check out PostageApp, where I am the Product Manager. We specialize in transactional emails and we make it real easy to design, send, and manage all of your emails.
Happy to answer any questions you may have!
Ended up using SendGrid. They take care of all the deliverability issues and can do transactional email sending.