Nearly a year after it was first announced, Messages in iCloud is finally available. All you need to enable it is iOS 11.4 on your iPhone or iPad.
You’ll almost certainly want to turn this feature on as it improves on the sort of half-baked syncing feature that was the only option in previous releases. Before, if you were signed into the same Apple ID on your iPhone and iPad, then the Messages apps on each device would simply show incoming messages at the same time. As you replied back and forth, each device updated the conversation threads in unison.
But this had big limitations. The devices all needed to be powered on and connected to the internet at once; if a device was offline, it wouldn’t ever get the messaging changes from your other devices. And if you deleted a conversation—say, a list of two-factor authentication codes—they would only disappear from the device you’re currently using.