Comments (6)
I am closing this as nothing much to do about it and it is end of the year.
Happy NY to you, have a good time with family and friends! @sunli829
from poem.
For postgres, not sure if it is correct or not but it looks like it will fail if session column is not JSONB. If it is then maybe there should be a note.
Yes, if you use postgres, the session column must be jsonb
.
poem/poem-dbsession/src/sqlx/postgres.rs
Line 31 in 84e27e6
Cleanup task should probably be configurable. When we have multiple poem servers running, we probably don't want every server to ping database to do clean up. I am not sure what the best way to approach this as some pros and cons of each setup or we just need to accept the duplicate jobs?
You are right, so I changed it, and now only provides a cleanup
function, users need to call it themselves.
Not very high priority, the value of in session in db looks like this {"id": ""xxx""}, it looks like the library does serialising twice at some points. It doesn't seem to affect how it works, nevertheless it is kind of nice to have correct json presentation.
It does serialize twice, but works fine. 🙂
from poem.
Not very high priority, the value of in session in db looks like this {"id": ""xxx""}, it looks like the library does serialising twice at some points. It doesn't seem to affect how it works, nevertheless it is kind of nice to have correct json presentation.
It does serialize twice, but works fine. 🙂
Yeah looks like it is due to Session is using entries: BTreeMap<String, String>
, coming from other languages I see people keep session in a more flexible JSON format.
https://github.com/gorilla/sessions/blob/master/sessions.go#L36
Not saying it is the standard but just something from prior art to consider.
from poem.
I thought you didn't care about this. 🙂
from poem.
Fixed in v.1.2.8
from poem.
Awesome thx!
I was taking a break so that you can do more productive work elsewhere jk jk ;)
Btw some shower thoughts this morning, happy if you say the following idea is not worth the effort.. etc..:
Basically in Go, people extract session into a separate library https://github.com/gorilla/sessions so that it can grow by itself, i.e. used for different servers or different stores. Not sure if it is worth doing the same thing in Rust? since poem session looks more or less self contained already.
I am not sure how other servers would use it though, cheers
from poem.
Related Issues (20)
- any plan for breakpoint_resume upload or download file HOT 1
- UI for OpenApi are very old (swagger ui, etc.).
- Poem/Openapi : Strategy for generating generic structure names HOT 4
- how to document Path<> and Query with poem_openapi? HOT 2
- [SecurityScheme] "checker" function always returns the same error HOT 2
- Order of auto-generated extractors not optimized
- In poem_openapi, allow a Query to have additional parameters HOT 2
- poerm_grpc: Use metadata of Status structure in headers HOT 1
- Reject requests from URIs with a fragment HOT 1
- poem 3.0.0 performance downgrade HOT 1
- the CompressionAlgo::BR algo is very, very slow > 11s HOT 2
- Poem compression does not take into account the "relative quality factor of the response" ( q=xxx )
- Poem OpenAPI Cookie SecurityScheme ignores provided `key_name`
- Misuse of span.record in tracing middleware HOT 2
- Dependency hell: poem fails to build when `hyper-util 0.1.1` is selected
- Union doesn't support generics in the last version HOT 1
- Union doesn't implement `IsObjectType`
- Add CookieConfig to Csrf middleware
- static files performance is weird. Does I missing something?
- Acme-alpn does not work
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 poem.