Skip to content

Instantly share code, notes, and snippets.

View SirPhemmiey's full-sized avatar
🎯
Focusing

Oluwafemi Akinde SirPhemmiey

🎯
Focusing
View GitHub Profile
@SirPhemmiey
SirPhemmiey / full_redis_playbook.yml
Created May 1, 2023 21:37
Full Ansible Playbook for Redis configuration
---
- name: Redis Installation
hosts: redis
become: true
tasks:
- name: Update package repositories
yum:
update_cache: yes
@SirPhemmiey
SirPhemmiey / main.go
Last active May 25, 2024 15:36
Implementing a basic circuit breaker pattern in go
package main
import (
"fmt"
"net/http"
"time"
"github.com/sony/gobreaker"
)
@SirPhemmiey
SirPhemmiey / main.go
Created May 25, 2024 16:02
Implementing a circuit breaker pattern (with prometheus) in go
package main
import (
"fmt"
"net/http"
"time"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/sony/gobreaker"
@SirPhemmiey
SirPhemmiey / main.go
Last active June 7, 2024 23:07
Implementing a circuit breaker pattern with advanced strategies in go
package main
import (
"fmt"
"math"
"math/rand"
"net/http"
"time"
"github.com/prometheus/client_golang/prometheus"
@SirPhemmiey
SirPhemmiey / main.go
Last active June 6, 2024 00:54
Circuit breaker with exponential backoff
package main
import (
"fmt"
"math"
"math/rand"
"net/http"
"time"
"github.com/sony/gobreaker"