How feasible it is to switch a communication protocol of a product?

By abhithakkar1998 ·
Tags: Networking
I had a question regarding networking and communication. It is not my forte and I am pretty new to it. Can somebody please tell me how feasible it is to switch a product using one protocol partially or entirely to a new protocol for communication? Also what kind of development and programming paradigms do I need to follow in case I need to design a product which might require a change in the future on which protocol it is using?

For e.g. Consider a hypothetical scenario where, I am developing a product that will use MQTT for communication. In future MQTT support stops due to any abrupt reason and I need to switch to HTTP REST API. Then how should I develop the product now so that in the future I have minimum effort to switch. Moreover will I need to rewrite entire product or are there an methods which do not require complete rewriting. The motive is that the product can evolve or adapt easily.

What are the Pros and Cons Involved in the process?
Thread display: Collapse - | Expand +

All Answers

Collapse -

Re: switch communication protocol

by Kees_B Moderator In reply to How feasible it is to swi ...

Assuming that with "product" you mean the software side, not the hardware side, this is a software design question. Back in 1975 "structured designed" learned us to separate interface and processing in different modules with only the relevant parameters.
So, for example, if you need to open a connection, you write a module with parameters that are independent of the details of the protocol that you want to use to open the connection and that doesn't assume anything about the program calling it.
Nothing really changed with that the last 45 years.

Collapse -


by abhithakkar1998 In reply to Re: switch communication ...

Thank you for the answer

Related Discussions

Related Forums