HOLLYWOOD — Gil Ferreira knows which houses on the Beachwood climb get a package they will pretend not to be waiting for, which mailboxes stick in the damp, and which dog on Glen Holly Drive will bark for form’s sake and then roll over for a scratch. He learned it the only way anyone does, which is by walking the same streets for thirty-eight years.

Ferreira, 63, delivered his last route for the Beachwood post on Friday, ending a career that began in 1988 on the same set of hillside streets above Franklin Avenue where it ended. Colleagues threw him a small send-off in the station back room, sheet cake and a folded flag of the kind carriers give each other, and then he walked the route one final time, slower than the schedule allows.

“They rotate you sometimes, they offer you flatter routes when your knees start talking. I stayed,” Ferreira said, sitting on a low wall on Belden Drive with the satchel he was technically no longer required to carry. “You spend that long on a hill and it stops being a route. It’s a couple hundred front doors you happen to know the people behind.”

The residents know him back. On his last morning, a handful stood at their gates with cards, and one, a retired composer named Adele Krishnan, 79, handed him a thermos of coffee she said she had owed him since a winter when he flagged a burst pipe running down her driveway before she was awake. “He noticed things,” Krishnan said. “The mail was almost incidental. He was the one person who saw every house every day and would say something if a thing was wrong.”

Ferreira has watched the route change under his feet. Houses that sold, families that turned over, the slow arrival of package volume that made his bag heavier every year as letters thinned and boxes multiplied. He estimates he climbed the equivalent of the hillside’s full elevation several times a day, six days most weeks, and figures the arithmetic works out to something absurd he prefers not to total.

His replacement, a carrier named Priya Anand who has shadowed him for two weeks, said the hardest part to inherit is not the walking but the knowledge — the shortcuts between yards, the boxes that need a specific jiggle, the households that will worry if the mail comes an hour late. “He handed me a route,” Anand said. “He can’t really hand me thirty-eight years of it. That part I have to earn.”

Ferreira has no grand plan for retirement, which he says suits him. He mentioned a fishing trip, a knee he has been ignoring, and a vague intention to walk the route now and then as a civilian, without the bag. On Friday he reached the last box, a dented aluminum one on Rockledge Road, slid in a single utility bill, closed the little door, and stood a moment before heading down the hill for good.