Sharing messages is simply sending information from one place to another so you can use it somewhere else without copying it by hand.
Imagine you have a big box of LEGO bricks in your living room. If you want to build a tower in the kitchen, you could run back and forth, grabbing one brick at a time (that is copying). Or, you could build the whole tower right there in the living room and just roll it across the floor into the kitchen (that is sharing). The tower stays connected to its base; you did not clone it. You just moved the reference point.
Why do we use them?
We share messages because it saves effort and keeps things fresh. Think about a shared Google Doc. When your friend types their name, you see it instantly on your screen. That is real-time synchronization. If they fix a typo, yours fixes too because you are looking at the same central brain, not two separate brains guessing what the other did.
Sharing works like a live video call versus sending a photo in text. In a live call, if I smile, you see it now. You do not have to wait for me to take a picture, send it, and then you check your phone later. The connection is open. This is crucial when things change often, like a scoreboard during a game or the price of stocks.
When is sharing better?
Use sharing when data changes frequently. Use copying when you want to keep a static snapshot that will never change again.
| Action | Like... | Best For... |
|---|---|---|
| Copying | Taking a photo | Keeping records forever |
| Sharing | Live video call | Seeing what happens now |
So next time you see an update happen while you are looking at it, remember: the data is not changing its mind. It is just being shared with you in real time.
Examples
- When your tablet finds the Wi-Fi router automatically, it is using a sharing message to say hello.
- Two computers sending files to each other exchange small messages to agree on the transfer speed.
Ask a question
See also
- How does the internet know where to send your data packets?
- What is OSI Model?
- How Does OSI Model Explained | Real World Example Work?
- How Do Computers Know What Time It Is?
- How Do Smartphones Know When to Switch from WiFi to Mobile Data?