They existed in roughly the same time period, they were at the top of a their respective social class, they were born into their rolls. On a simpler level; they both wore metal armor, were soldiers for their king/emperor and they murdered things with swords.
how are you going
The difference between a shogun and a samurai is like the difference between a king and a knight.
Knights and Samurai
A major difference between Japanese samurai and European knights during the Middle Ages was their code of conduct and social ethos. Samurai adhered to Bushido, emphasizing honor, loyalty, and discipline, while European knights followed chivalric codes that included ideals of bravery, courtly love, and protection of the weak. Additionally, samurai typically served a single lord with lifelong loyalty, whereas knights often served multiple lords and could be more mobile in their allegiances. Their martial practices and weaponry also differed significantly, with samurai favoring the katana and archery, while knights commonly used swords, lances, and heavy armor in battle.
samurai have an armor made out of bamboo, leather and some metal. but knights armor are made of steel or many chain mails joined together Samurai didnt have the chivalry that was requested from knights
received salaries in payment for their service
A ronin is a samurai. Samurai was a status in Japan. A ronin was simply someone of samurai status that had no clan affiliation.
The Samurai of the East have gone the way of the Knights of the West.
Three characteristics shared by knights and samurai were loyalty to their lords, adherence to a code of ethics (chivalry for knights, bushido for samurai), and the use of a variety of weapons and fighting techniques in battle.
Samurai
Samurai
In Japan women were equal to men, thus a women could become a samurai. In Europe Women weren't treated equal to men, thus they couldn't become knights. Samurai soldiers slept with their swords because they were scared of their wives, European soldiers didn't.