Skip to content

Instantly share code, notes, and snippets.

View ismaelhamed's full-sized avatar
🚀
lezduit

Ismael Hamed ismaelhamed

🚀
lezduit
  • Spain
  • 06:28 (UTC +02:00)
View GitHub Profile
@StevenACoffman
StevenACoffman / _MicroService Proxy Gateway Solutions.md
Last active July 15, 2024 05:12
Microservice Proxy/Gateway Solutions

MicroService Proxy Gateway Solutions

Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.

Github Star Trend:

Github Star History for Kong vs traefik vs fabio vs caddy vs Zuul

This is just a picture of this link from March 2, 2019

Originally, I had included some other solution

@Horusiath
Horusiath / Program.cs
Created January 26, 2017 09:08
Akka.Persistence example with proto-buf.net as a custom domain event serializer
using System;
using Akka.Actor;
using Akka.Configuration;
using Akka.Persistence.SqlServer;
namespace TestApp
{
class Program
{
public static void Main()
@mdschweda
mdschweda / Folder structure
Last active April 3, 2023 16:28
Multiple projects DocFX structure
+-- doc
⁞ +-- api
⁞ ⁞ +-- ProjectA
⁞ ⁞ ⁞ +-- index.md
⁞ ⁞ +-- ProjectB
⁞ ⁞ +-- index.md
⁞ +-- docfx.json
⁞ +-- toc.yml
+-- src
+-- ProjectA
using System;
using System.Diagnostics;
using Akka.Actor;
namespace SpawnTest
{
internal class Request
{
public long Div;
public long Num;
@Horusiath
Horusiath / example.cs
Last active April 17, 2022 10:27
Generic persistent gateway for Akka.NET at-least-once-delivery semantics
// Delivery mechanism looks like this - if sender wants to reliably deliver payload to recipient
// using at-least-once delivery semantics, it sends that payload wrapped to Messenger actor, which
// is responsible for the persistence and redelivery:
//
// +--------+ +-----------+ +-----------+
// | |--(DeliverOrder<T>)-->| |--(Delivery<T>:1)-->| |
// | | | | /* 2nd attempt */ | |
// | Sender | | Messenger |--(Delivery<T>:2)-->| Recipient |
// | | | | | |
// | | | |<----(Confirm:2)----| |
@TerribleDev
TerribleDev / Program.cs
Last active January 13, 2019 20:57
parsing args in dotnet core
public static void Main(string[] args)
{
var app = new Microsoft.Extensions.CommandLineUtils.CommandLineApplication();
var catapult = app.Command("catapult", config => {
config.OnExecute(()=>{
config.ShowHelp(); //show help for catapult
return 1; //return error since we didn't do anything
});
config.HelpOption("-? | -h | --help"); //show help on --help
});
@adamw
adamw / windowing.scala
Created August 5, 2016 13:30
Windowing data in Akka
package com.softwaremill.akka
import java.time._
import akka.actor.ActorSystem
import akka.stream.ActorMaterializer
import akka.stream.scaladsl.Source
import scala.collection.mutable
import scala.concurrent.Await
@KerryRitter
KerryRitter / Startup.cs
Last active May 4, 2024 09:11
OpenIddict Startup Example (with postgres and custom password rules)
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
namespace MyApp.Api
public static class SocketExtensions
{
public static Task<SocketAsyncEventArgs> PerformAsyncOperation(this Socket socket, Action<SocketAsyncEventArgs> operation)
{
// Configure the async callback event.
var completionSource = new TaskCompletionSource<SocketAsyncEventArgs>();
var asyncArgs = new SocketAsyncEventArgs();
asyncArgs.Completed += (sender, args) => completionSource.SetResult(args);
// Invoke what ever socket operation is being used with the args.
@RobCranfill
RobCranfill / gist:21186a1cea079c697b90
Created January 6, 2016 23:53
How to install VirtualBox 5 so it will use the old NDIS5 network driver, instead of the not-working version 6.
F:\Downloads\ $ VirtualBox-5.0.10-104061-Win.exe -msiparams NETWORKTYPE=NDIS5