Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Marwan Rabbâa
    @waghanza
    @laviua could you eleborate ?
    Oleksandr Loushkin
    @laviua
    yes, but maybe it is already works, that's why i'm asking
    Marwan Rabbâa
    @waghanza
    in which context ?
    wildcard handling -> what do you mean ?
    Oleksandr Loushkin
    @laviua
    i want to handle -> "**" requests, it means that i have the one function handler for the whole request with any depth
    Marwan Rabbâa
    @waghanza
    that's clearer
    but I don't know
    (and I think it shouldn't)
    Oleksandr Loushkin
    @laviua
    i want to use japronto as a fast routing proxy
    like a linkerd
    Marwan Rabbâa
    @waghanza
    so probably not the use-case of japronto
    I mean, a proxy handle all http incoming request in the same method, what is the use case for haproxy or nginx
    not a framework like japronto
    seems odd, but I hope you find a tool for your needs
    Oleksandr Loushkin
    @laviua
    i need some specific routing logic, that's why i skip nginx
    Marwan Rabbâa
    @waghanza
    ?
    I understood you need to route all incoming on one logic
    Oleksandr Loushkin
    @laviua
    it depends on incoming headers
    Marwan Rabbâa
    @waghanza
    btw, openresty is kind of what you need;-)
    ah ok
    you need to declare a map : header1 -> route1 / header2 -> route2
    that's it ?
    Oleksandr Loushkin
    @laviua
    • retries, roundrobin balancing, falt tolerant statistics, etc )
    Marwan Rabbâa
    @waghanza
    again, for me this is a kind of use case of haproxy or nginx
    lua to the rescue
    :stuck_out_tongue:
    but seems not to be a framework use-case
    Oleksandr Loushkin
    @laviua
    i will take a look again into the nginx mapping with evaluation of request )
    i'm already use nginx and linkerd
    have to go, thank you
    Marwan Rabbâa
    @waghanza
    you're welcome
    Xiaobo Zhang
    @bayareabear
    Hi guys, I try to import Japronto to my project, but the "dist" file is missing in https://pypi.org/simple/japronto/
    Is there anybody can help? thanks a lot
    Guido D. Straw Hat 🏴‍☠️
    @KHS9NE_twitter
    Hello everyone. I'm writing a project with japronto. I usually use flask for those stuff, but for many reasons I'd like to try a new framework and I like japronto.
    now to me it would be helpful to know if a threadlocal is shared across requests or I can assume it's scoped.

    for example:

    session = threading.local()
    
    
    def store_request(fun):
        @wraps(fun)
        def wrapper(request):
            session.request = request
            return fun(request)
        return wrapper

    would this work ?

    I would have, on the other side, something like:
    def get_current_request():
        if getattr(session, 'request', None):
            return session.request
    (obv the store_request decorator would be used on top of router-bounded methods)
    Marwan Rabbâa
    @waghanza
    hi
    do you know if japronto is used in production by some enterprises ?
    Rubi
    @codenoid
    i'm
    hello
    Marwan Rabbâa
    @waghanza
    It is probably accurate to create a wiki page to adds those kind of references
    What do you think @squeaky_pl_twitter
    Masoud Motallebipour
    @peprog_gitlab
    Have any of you guys use japronto in production?
    I'm trying to do it, it's risky but I'll take it
    I like the performance
    so far I have implemented almost everything on it
    Marwan Rabbâa
    @waghanza
    I would not recommand japronto in production, I could advice to check in this list https://github.com/the-benchmarker/web-frameworks (japronto is not listed since not very suitable for production)
    Masoud Motallebipour
    @peprog_gitlab
    I'm just giving it a try. I'm trying to use uvicorn for production server but it gets this error: TypeError: 'Application' object is not callable.
    did anyone faced it before?