RPCs are similar to User-Defined Functions (UDFs). Both UDFs and RPCs enable you to extend Sybase CEP Server by writing custom code. A UDF runs as part of the server process, while an RPC runs as part of a separate process.