go

(Part 11)Golang Framework Hands-on – Adaptive Registration of FaaS Parameter Types Based on Reflection

(Part 11)Golang Framework Hands-on – Adaptive Registration of FaaS Parameter Types Based on Reflection

Github: https://github.com/aceld/kis-flowDocument: https://github.com/aceld/kis-flow/wiki Part1-OverViewPart2.1-Project Construction / Basic ModulesPart2.2-Project Construction / Basic ModulesPart3-Data StreamPart4-Function SchedulingPart5-ConnectorPart6-Configuration Import and ExportPart7-KisFlow ActionPart8-Cache/Params Data Caching and Data ParametersPart9-Multiple Copies of FlowPart10-Prometheus Metrics StatisticsPart11-Adaptive Registration of FaaS Parameter Types Based on Reflection To be continued. Next, we will enhance the Function in KisFlow to better focus on processing business data. We will change the previous Function implementation: func FuncDemo3Handler(ctx context.Context, flow kis.Flow) error { fmt.Println("---> Call funcName3Handler ----") fmt.Printf("Params = %+vn", flow.GetFuncParamAll()) for _, row := range flow.Input() { str := fmt.Sprintf("In FuncName = %s, FuncId = %s, row = %s", flow.GetThisFuncConf().FName, flow.GetThisFunction().GetId(), row) fmt.Println(str) }…
Read More
Migrando Microservicios de NestJS con TypeScript a Go: Una Semana de Descubrimientos

Migrando Microservicios de NestJS con TypeScript a Go: Una Semana de Descubrimientos

Migrando Microservicios de NestJS con TypeScript a Go: Una Semana de Descubrimientos En la última semana, me he sumergido en el mundo de Go con el objetivo de migrar nuestros microservicios desarrollados en NestJS con TypeScript. Esta travesía ha sido un ejercicio intenso de desaprender ciertos paradigmas y adoptar otros, comprendiendo las diferencias fundamentales entre estos dos ecosistemas de desarrollo. Nuestra Arquitectura en NestJS En nuestro stack con NestJS, manejamos microservicios conectados a bases de datos PostgreSQL y Redis. Implementamos diversas estrategias de comunicación entre microservicios: Comunicación por Eventos: Utilizamos Pub/Sub para suscripciones y tópicos que permiten la comunicación asíncrona…
Read More
(Part 8)Golang Framework Hands-on – Cache/Params Data Caching and Data Parameters

(Part 8)Golang Framework Hands-on – Cache/Params Data Caching and Data Parameters

Github: https://github.com/aceld/kis-flowDocument: https://github.com/aceld/kis-flow/wiki Part1-OverViewPart2.1-Project Construction / Basic ModulesPart2.2-Project Construction / Basic ModulesPart3-Data StreamPart4-Function SchedulingPart5-ConnectorPart6-Configuration Import and ExportPart7-KisFlow ActionPart8-Cache/Params Data Caching and Data Parameters To be continued. 8.1 Flow Cache - Data Stream Caching KisFlow also provides shared caching in stream computing, using a simple local cache for developers to use as needed. For third-party local cache technology dependencies, refer to: https://github.com/patrickmn/go-cache. 8.1.1 go-cache (1) Installation go get github.com/patrickmn/go-cache Enter fullscreen mode Exit fullscreen mode (2) Usage import ( "fmt" "github.com/patrickmn/go-cache" "time" ) func main() { // Create a cache with a default expiration time of 5 minutes, and which //…
Read More
Go vs Rust: Choosing the Right Language for Your Development Journey in 2024

Go vs Rust: Choosing the Right Language for Your Development Journey in 2024

When choosing a programming language for your next project, it’s essential to consider the strengths and features of the available options. Rust and Go are two modern languages that have gained significant traction for their performance, concurrency, and ease of use. Here’s a comparison of Rust vs Go, highlighting their key features, advantages, and ideal use cases. Rust: Memory Safety: Rust is designed with a strong emphasis on memory safety without the need for a garbage collector. Its ownership system, which is enforced at compile time, helps prevent data races and null pointer dereferences. Performance: Rust offers performance comparable to…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.