ICEPush: Sending data via notifications

While I grasp the essential concept behind ICEPush - where the client subscribes, the server notifies subscribers of new data, and the client requests the payload through ajax - there is a noticeable performance issue in certain scenarios.

Imagine a scenario where a page is monitoring changes to multiple items. Let's say I subscribe to an ICEPush event on the server named "ItemChange." This event triggers whenever a process on the server alters an "Item" entity. Now, if a user is tracking items with IDs 2 and 3, and an event occurs that changes item 5 on the server, the server will notify an "ItemChange" event. Consequently, the client would request a payload that is irrelevant since it is not tracking item 5. This situation leads to unnecessary server calls.

I have been searching for a solution to this dilemma but haven't found one yet. If there was a way to include a parameter with the notification, I could simply pass along the IDs of the changed items. Then, the client would know whether it needs to request the payload or not. Unfortunately, it seems like there is no straightforward method to achieve this. Any suggestions would be greatly appreciated. Thank you.

Answer №1

For optimal results, it's recommended to utilize multiple PUSHIDs. Are you integrating this feature with ICEfaces? What is the expected number of items per page? Are there any inherent groupings for the items?

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Using ISO-8601 format to display dates in JSON within a .NET WebService

While working with a .net asmx webservice, I encountered an issue with the date format being returned. The date field is in the form of: "effective_date":"\/Date(978411600000)\/" After researching on Stack Overflow here: How do I format a Micros ...

Changing the color of the active link in the navigation bar when the href is empty

I need to change the active link color after it has been clicked. For example, when I click on the "START" link, I want the text to appear in a different color. Currently, my code only works when I have "#" links, such as when I click on "O HODOWLI", the " ...

Can custom directives incorporate comprehension expressions?

Is there a way to implement comprehension expressions similar to those used in ng-options, but for grouping radio buttons or checkboxes? app.js angular .module("app", []) .controller("controller", ["$scope", function($scope){ $scope.selec ...

Frequently refreshing a page to display the most recent information without needing to reload the entire

I am seeking a solution for updating the comments section on my website live or every 30 seconds. The comments are fetched from a MySQL database using PHP: <?php $link = mysql_connect('localhost', 'root', ''); ...

Why is the jQuery change event only firing when the page loads?

I am experiencing an issue with a .js file. The change event is only triggering when the page loads, rather than when the selection changes as expected. $(document).ready(function(){ $("#dropdown").on("change keyup", colorizeSelect()).change(); }); f ...

What could be causing this test to fail when testing my API endpoint?

Why am I encountering this error? Uncaught exception: Error: listen EADDRINUSE: address already in use :::3000 import supertest from "supertest" import axios from "axios" import app from ".." const request = supertest(app ...

Utilizing Vue components to streamline the process of adding and updating data

I have a rather straightforward parent/child component. I am looking to utilize the child component in two ways - first, for adding a new entry and second, for updating an entity. Here are the components that I've built: https://codepen.io/anon/pen/b ...

Transferring Variables from WordPress PHP to JavaScript

I have implemented two WordPress plugins - Snippets for PHP code insertion and Scripts n Styles for JavaScript. My objective is to automatically populate a form with the email address of a logged-in user. Here is the PHP snippet used in Snippets: <?p ...

After implementing infinitescroll, the Jquery on click event ceases to function

Currently, I am utilizing the cakephp framework along with the jquery infinitescroll plugin to dynamically load content. Each post includes a link with an ajax action. Initially, when loading the page, there are 5 posts and the ajax links function properl ...

Retrieving particular excerpts from a block of text that includes the keyword "javascript."

I have a chunk of string containing HTML source code. Currently, I am trying to read specific tags that I need using JavaScript. Since I am new to programming, I'm unsure how to proceed. Can anyone assist me with this? The issue lies in the following ...

Trouble with Mockito when trying to mock a collection

Is it possible to mock a list in this scenario? private Item populateData(Item i) { List<Person> groupIdList = xyzDao.getData(id); for (Person p: groupIdList) { } } I am looking for guidance on how to effectively test the function by m ...

Is it possible to use jQuery to load a page via AJAX and define a callback function on the loaded page

Currently, I am using the $('#container').load method to manage loading all the subpages of my website. However, some of these sub-pages require additional functionality such as form validation. I would like each sub-page to be self-contained, m ...

Is it possible to remove a specific directory from the webpack build configuration in a vue-cli-3 setup?

After spending 3 hours adding the line: exclude: ['./src/assets/sass'] in 20 different places, I am seeking guidance on where it should actually be placed. Below is my current setup for the css-loader (util.js): 'use strict' const path ...

What advantages does menu.findItem() offer over using findViewByID by itself?

As a newcomer to Android, I have a query regarding the distinction between these two lines of code. Let's assume there is a menu.xml file with two items: a 'save' item with the id "save" and a 'delete' item with the id "delete". M ...

What is the best way to conceal the button?

I'm working on a program that involves flipping cards and creating new ones using three components: App, CardEditor, and CardViewer. Within the CardEditor component, I am trying to implement a function that hides the button leading to CardViewer until ...

Using jQueryMobile within ASP.NET WebForms

Would implementing jQueryMobile in an ASP.Net Web Form application be the best choice? What advantages and disadvantages come with utilizing jQueryMobile or another Mobile JS library in ASP.NET web Forms? ...

The execution of a nested object's function that calls a JavaScript function encounters an error

Below is a simple example demonstrating the issue I am facing, which you can also view on JSFiddle here. While I understand why the issue is happening, I'm unsure of how to resolve it without altering the existing JS structure. The problem arises wh ...

Currently, I am utilizing Angular 2 to extract the name of a restaurant from a drop-down menu as soon as I input at least two characters

I am currently utilizing Angular 2 and I am trying to retrieve the names of all restaurants from a dropdown menu. Currently, when I click on the text field, it displays all the results, but I would like it to only show results after I have entered at least ...

What could be causing the failure of my yup validation schema for a string array?

Can anyone provide insight into why this validation issue is occurring? I am implementing a schema using yup to ensure that the data within an array are strings. Below is the yup schema I am working with: signUpSchema: async (req, res, next) => { ...

Instructions for modifying the color of the close button in the angularjs ui-select module

I am currently using ui-select for multiple selection in a dropdown. When an item is selected, it displays a cross button on the upper right corner of the selected item. Is there a way to change the color of the cross button to red? <ui-select multip ...