PROTO REFLECTION IMPLEMENTATION FOR DYNAMIC INTERACTION WITH GRPC SERVICES IN HIGH-LOAD SYSTEMS
This paper introduces SwiftProtoReflect, a Swift library that implements Proto Reflection to enable dynamic interaction with gRPC services without the need for precompiled code from `.proto` files. Addressing the inherent limitations of Swift in handling Protocol Buffers—such as restricted dynamic code generation and limited reflection capabilities—the research employs theoretical analysis of these constraints and develops an innovative solution utilizing descriptors and dynamic message handling. The main results demonstrate that SwiftProtoReflect allows developers to define Protocol Buffers message structures dynamically, serialize and deserialize messages, and access message fields at runtime. This advancement overcomes existing barriers, offering enhanced flexibility, scalability, and performance comparable to statically generated code. Concluding, SwiftProtoReflect significantly contributes to the data engineering field by filling a critical gap in the Swift ecosystem, enabling efficient development of high-performance and adaptable applications. The novelty of this work lies in its original technological solution, expanding Swift's capabilities and providing practical benefits for high-load systems and microservice architectures.
Authors
- Kish Aleksei
Institutions
- Sociedad Española de Medicina de Familia y Comunitaria (ES)
Publication Details
- Journal
- The American Journal of Engineering And Technology
- Published
- 2024-12-01
- DOI
- https://doi.org/10.37547/tajet/volume06issue12-09
- Primary Topic
- Software System Performance and Reliability
- Type
- article
- Field-Weighted Citation Impact
- 0.00