This application provides a method for
processing roles in a governance
system, relating to the fields of
big data and distributed technologies. The method includes: acquiring q processes in the
system; taking each node in the processes as a function, extracting non-repeating functions from the q processes to form a function set; traversing at least a portion of the functions in the function set, wherein, taking the traversed functions as target functions, determining p target processes from the q processes that use the target functions; acquiring roles executing the target functions from the p target processes in the
system to form a first
functional role supply and demand relationship set; when the first
functional role supply and demand relationship set contains multiple roles satisfying a first similarity condition, forming a first suspected near-synonymous role set from the multiple roles satisfying the first similarity condition; and outputting the first suspected near-synonymous role set. This application also provides a
processing apparatus, device, storage medium, and program product for roles in a governance system.