A streaming graph optimization method and apparatus are disclosed, relating to the stream processing field. A stream application streaming graph provided by a user is received (S601); the streaming graph is parsed and a streaming graph described by an operator node and a data stream side is constructed (S602); the streaming graph is disassembled according to a maximum atom division principle, so as to obtain at least one streaming subgraph (S603); adjacency operator combination is performed on the at least one streaming subgraph according to a combination algorithm, so as to obtain an optimized streaming graph (S604). By disassembling and combining the streaming graph provided by the user, balanced streaming graph computing logic is implemented, redundant flow transmission is reduced, and stream system resource utilization and stream application execution performance are improved.
展开▼