This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @startuml | |
| !theme plain | |
| participant Client | |
| participant Proposer | |
| box "Acceptors" #LightGrey | |
| participant A | |
| participant B | |
| participant C |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @startuml | |
| !theme plain | |
| title Outbox Pattern: Atomik Veritabanı İşlemi | |
| autonumber "<b>[0]" | |
| actor "Client" as client | |
| participant "Order Service" as service | |
| box "Veritabanı" #LightBlue | |
| database "Orders Tablosu" as orders_db | |
| database "Outbox Tablosu" as outbox_db |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @startuml | |
| !theme plain | |
| title Message Relay: Polling Publisher Yaklaşımı | |
| ' Katılımcıları Relay ortada olacak şekilde yeniden düzenle | |
| box "Veritabanı" #LightBlue | |
| database "Outbox Tablosu" as outbox_db | |
| end box | |
| participant "Message Relay\n(Arka Plan Süreci)" as relay | |
| queue "Message Broker\n(RabbitMQ, Kafka vb.)" as broker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @startuml | |
| !theme plain | |
| title Message Relay: Change Data Capture (CDC) Yaklaşımı | |
| participant "Order Service" as service | |
| box "Veritabanı" #LightBlue | |
| database "Outbox Tablosu" as outbox_db | |
| database "Transaction Log (WAL)" as wal | |
| end box | |
| participant "CDC Aracı\n(Debezium)" as cdc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "errors" | |
| "fmt" | |
| ) | |
| /* | |
| coordinates |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "unicode" | |
| ) | |
| func CamelCase (str string) string { | |
| runes := []rune(str) | |
| var runes2 []rune |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "fmt" | |
| func AlphabetSoup(str string) string { | |
| runes := []rune(str) | |
| for i:=0; i <= len(runes)-2; i++ { | |
| for i:=0; i <= len(runes)-2; i++ { | |
| if runes[i] > runes[i+1] { | |
| runes[i], runes[i+1] = runes[i+1], runes[i] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "unicode" | |
| ) | |
| func LetterChanges(str string) string { | |
| runes := []rune(str) | |
| for i := 0; i <= len(runes) - 1; i++ { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This example demonstrates how to authenticate with Spotify using the authorization code flow. | |
| // In order to run this example yourself, you'll need to: | |
| // | |
| // Register an application at: https://developer.spotify.com/my-applications/ | |
| // - Use "http://localhost:8080/callback" as the redirect URI | |
| package main | |
| import ( | |
| "context" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "fmt" | |
| func FirstReverse(str string) string { | |
| runes := []rune(str) | |
| for i, j := 0, len(runes)-1; i < j; i, j = i+1, j-1 { | |
| runes[i], runes[j] = runes[j], runes[i] | |
| } | |
| str = string(runes) |
NewerOlder