Comments (6)
It is safer to make each call separate, because HTTP 2 persists the connection, so it should really not be much overhead. This makes error handling simpler. Is server X failed, but Y worked, it's hard to track with a single call.
Where do you see that the key is being duplicated in requests? The browser should use cookies, and the backends use headers.
from pufferpanel.
Here, regarding the authorization token.Where do you see that the key is being duplicated in requests? The browser should use cookies, and the backends use headers.
from pufferpanel.
It is safer to make each call separate, because HTTP 2 persists the connection, so it should really not be much overhead. This makes error handling simpler. Is server X failed, but Y worked, it's hard to track with a single call.
It is difficult to agree with your opinion. Why can't you track errors? You can return the structure for this
[
{
"id":"3418148c",
"running":true
},
{
"id":"e87c81c7",
"running":false
}
]
I also don't understand what error catching is, you can call a logger in the process of forming the status body and send this error to the records, or to your analytics server for example.
The only thing I see as true in this statement is the increase in the response delay, but this can be leveled by collecting data asynchronously, since the main load is not computing, but simply waiting for a response from the nodes. It's also possible to split it into pages, which you're already partially doing by splitting the list into 10 servers. However, a periodic stream of requests to check the server's status can pose a problem when using request throttling on a proxy server.
from pufferpanel.
If your proxy is doing throttling that hard, then the web doesn't work well anyways. I would say that's a non-issue, and we should not be sending enough requests to trigger a throttle, that would not excessively trigger elsewhere. Github did 147 requests for me, in 2.5 seconds. We aren't sending many requests.
I do not like the idea of merging requests together, because it complicates the API even more than it needs to be,
URLs, which is how requests are done, are predictable, and uniform.
If one endpoint is completely different than others, then it makes documentation, and implementation, harder.
The auth token is noted. We'll remove the header in future releases, since it should not be needed.
from pufferpanel.
In fact the current state of the v3 branch already doesn't do the auth header anymore
The reason it does work like that in v2 was due to me setting everything up with header usage, then getting to the web socket and learning that browsers are as smart as rocks and don't allow opening a web socket with headers, only cookies are sent along, but a lot of code was already assuming usage of headers so I just added the cookie on top because it's not like it causes any issues (and I cannot remember a single issue resulting from that, so I want to say reality agrees)
Regarding merged status calls: It's not necessarily hard to merge calls, but in my experience, on top of the already given arguments, it usually turns out to produce quite messy code in both frontend and backend, so I can't say I'm eager to deal with mixed response endpoints
from pufferpanel.
I've given you a reason to think about the API scheme, I'm not forcing you to implement it. Since everyone has had their say I will close this discussion. Thank you all.
from pufferpanel.
Related Issues (20)
- How to activate the password recovery thingy HOT 1
- When trying to find server template with search bar, server get stuck. HOT 1
- Health check endpoint HOT 1
- environment no data available HOT 1
- Missing binary: Npm HOT 2
- could anyone update the discord.js template? last time it has been update dis 2 years ago and its broken asf HOT 1
- Help, I find bug HOT 1
- cannot access to pufferpanel server adress HOT 2
- Puffer
- Scroll bar with bookmarks HOT 1
- Q: Authorize requests HOT 1
- SFTP username contains invalid characters HOT 10
- Local node still showing as localhost despite
- Downloading from Github.com fails with dockerized templates HOT 1
- Minecraft - Java Edition: template for paper using wrong binary name
- Can't connect to pufferpanel via FileZilla HOT 1
- Passkey support HOT 2
- Support for More JDK Distributions HOT 3
- Installing FTB Modpack HOT 1
- Port not work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pufferpanel.