---
title: "OpenDev (@OpenDev) | Hashnode"
description: "Golang,Redis,Docker,Reactjs. Read the latest articles by OpenDev on Hashnode."
url: "https://hashnode.com/@OpenDev"
---

@OpenDev

# OpenDev

@OpenDev · VietNam · Joined June 2022

Golang,Redis,Docker,Reactjs

### [Cloudwatch Insights Basic - 1](https://opendev.hashnode.dev/cloudwatch-insights-basic-1?utm_source=hashnode&utm_medium=feed)

In this article, I am introduction query and search cloudwatch insights basic. APIGW statistical according api key id fields @timestamp, @message | filter @message like /API Key ID/ | parse @message "API Key ID: \*" as @apikeyid | stats count(\*) by ...

2 min read · [opendev.hashnode.dev](https://opendev.hashnode.dev/cloudwatch-insights-basic-1?utm_source=hashnode&utm_medium=feed)

[Jan 1, 2024](https://hashnode.com/posts/cloudwatch-insights-basic-1/65923c4bfce6da9492599016)

### [Golang Producer and Consumer with Kafka Simple](https://opendev.hashnode.dev/golang-producer-and-consumer-with-kafka-simple?utm_source=hashnode&utm_medium=feed)

install package: go get https://github.com/segmentio/kafka-go Create Topic In Kafka: create topic name logging topic logging has 1 partition Producer create folder producer: create file main.go in folder producer copy and paste code: package...

2 min read · [opendev.hashnode.dev](https://opendev.hashnode.dev/golang-producer-and-consumer-with-kafka-simple?utm_source=hashnode&utm_medium=feed)

[Jun 11, 2023](https://hashnode.com/posts/golang-producer-and-consumer-with-kafka-simple/648537db4b759847ea99ee7c)

### [\[Golang\] Test Performance - 2](https://opendev.hashnode.dev/golang-benchmark-string?utm_source=hashnode&utm_medium=feed)

Comparing the Check If-Else String package main import ( "strings" "testing" ) func CheckIfElseEmpty(s string) string { if s == "sdfsdsdfsdsdfsdsdfsdsdfsdsdfsd" { return s } return s } func CheckIfElseLen(s string) strin...

1 min read · [opendev.hashnode.dev](https://opendev.hashnode.dev/golang-benchmark-string?utm_source=hashnode&utm_medium=feed)

[Feb 19, 2023](https://hashnode.com/posts/golang-benchmark-string/63f19a7536352a5afaee408f)

### [\[Golang\] Test Performance Function Standard - 1](https://opendev.hashnode.dev/golang-test-performance-function-standard-1?utm_source=hashnode&utm_medium=feed)

Comparing performance return error create file return.go func newErr() error { return errors.new("this is error") } func fmtErr() error { return fmt.Errorf("this is error") } create file return\_test.go func BenchmarkNewErr(b \*testing.B) ...

2 min read · [opendev.hashnode.dev](https://opendev.hashnode.dev/golang-test-performance-function-standard-1?utm_source=hashnode&utm_medium=feed)

[Dec 15, 2022](https://hashnode.com/posts/golang-test-performance-function-standard-1/639a78ca9302efdc4ca3f921)

### [\[Golang\] Use Redis implement attempt access in period](https://opendev.hashnode.dev/golang-use-redis-implement-attempt-access-in-period?utm_source=hashnode&utm_medium=feed)

Code example: connect redis: func InitRedis() \*redis.Client { rdb := redis.NewClient(&redis.Options{ Addr: "localhost:6379", Password: "", // no password set DB: 0, // use default DB }) return rdb } mai...

1 min read · [opendev.hashnode.dev](https://opendev.hashnode.dev/golang-use-redis-implement-attempt-access-in-period?utm_source=hashnode&utm_medium=feed)

[Dec 10, 2022](https://hashnode.com/posts/golang-use-redis-implement-attempt-access-in-period/63945a42d1fe3b534e7c2db1)
