As for the disadvantages of the model

Description of your first forum.
Post Reply
sujonkumar6300
Posts: 316
Joined: Thu Jan 16, 2025 8:32 am

As for the disadvantages of the model

Post by sujonkumar6300 »

we must take into account that we must have a well-defined data structure to be published, and that the subscribers are aware of it. Thus, if the data structure changes, both the publisher and the subscriber must be modified. Maintaining compatibility with different versions is not easy; it is easier to launch new events that use the new versions of the data structure and create new subscribers that listen to said events. Another drawback to take into account is that since the publisher does not know whether or not there are subscribers, the middleware that distributes the messages must have mechanisms that guarantee, as far as possible, the delivery of said messages.

The search engine
The goal of this article is to present and solve a simple scenario that can be used as a basis for developing a more robust search engine or even any distributed system. Thus, our search engine will be in charge of searching for a word in text files that are located on different computers. From a web application we will publish events to launch the search, different nodes will be listening algeria phone number data for those events and will search for that word in the content of all text files in a specific path; as a result, the nodes will return the name of the file where they found the word and the line number where it was found. Figure 1 illustrates the behavior of the search engine. The process is as follows:
Post Reply