Code Monkey home page Code Monkey logo

Comments (6)

pascalandy avatar pascalandy commented on May 31, 2024 1

I'm not very knowledgeable with Caddy, but it sounds like an elegant solution

from dogvscat.

pascalandy avatar pascalandy commented on May 31, 2024

I'll be very curious to see the architecture you have in mind. There is an issue on Traefik's GitHub but it goes nowhere at this point.

from dogvscat.

BretFisher avatar BretFisher commented on May 31, 2024

I was assuming a cache container in front of Ghost node container. So traffic would be:

client --> cloud LB-->swarm ingress-->traefik-->proxy overlay-->cache-->ghost overlay-->ghost

I'm normally a nginx guy, and have done reverse proxy caching with it before, but thought it would be fun to try varnish in this project, which I haven't used.

Hopefully, we can use one of these images:

  • This one requires a varnish config file added as a swarm config, but looks flexible and up to date.

  • This one is ENVVAR heavy, which I like (very 12factor.net!) No configs needed hopefully.

from dogvscat.

pascalandy avatar pascalandy commented on May 31, 2024

If I understand well, in a case where I have 5 Ghost instances, I would need 5 varnish instances.

client—>cloud LB—>swarm ingress—>traefik—>proxy overlay—>Varnish_Caching_1—>Ghost overlay—>Ghost_1
                                                       —>Varnish_Caching_2—>Ghost overlay—>Ghost_2
                                                       —>Varnish_Caching_n—>Ghost overlay—>Ghost_n

I actually like this. Not all my clients needs to have a caching instance :-p

from dogvscat.

BretFisher avatar BretFisher commented on May 31, 2024

Yes, it would be a 1-to-1. The other option would be to replace layer 7 reverse proxy (Traefik) with something that can do both DNS routing and caching... like nginx... but I feel like that's harder to get right.

from dogvscat.

pascalandy avatar pascalandy commented on May 31, 2024

Thanks for your input on this :)
BTW, I'll will not replace Traefik anytime soon :-p

from dogvscat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.