China has had civil servants since at least the Zhou Dynasty.
Vietnam, after becoming free of Chinese rule and setting up its own independent monarchy, emulated the Chinese system of mandarins in its civil service.