Comments (4)
Now we have:
- per connection
context
andcontext.uuid
autogenerated to identify connection context - persistently stored
context.session
for whole session identified bycontext.session.token
- and
context.session.accountId
to identify certain user
I think we do not need session or connection bounded logger, because we use local logs for system logging, while for business-process logging we need separate place: Journal
(system wide, single for all servers)
Also I do not think that we need database connection in context associated with certain transaction, we can do it in different way: any transaction should be started/committed/rolledback in a single routine, if we need to pass a reference to a connection to other procedures, we can do it manually, but I'd like to have start/commit/rollback in one place and use passed reference just for queries but not for doing operations with transaction.
from impress.
Also we do not need class or factory function for context, what we need is a schema and .d.ts typing
from impress.
Platform should catch all context identifiers like context.uuid
when we
throw
return Error
console.*
and write to logs
Alternatively we can register ids manually:
- by
context.tag: object
- or
context.registerLogId('key', value)
- or
console.registerLogId('key', value)
from impress.
Partially done in Version 3.0.0, other features requires consensus and we will open new issues for them
from impress.
Related Issues (20)
- Template for virtual folders
- Error processing url in static directory HOT 4
- HEADERS_SENT on node 20, server static from empty folder
- Maximum call stack size exceeded
- Support units without version
- Start test after all workers started
- Support timeout and queue for hook
- Start ERR_WORKER_INVALID_EXEC_ARGV HOT 1
- hook call doesn't work
- Module loader is trying to load submodules that use optional dependencies
- Cannot set property x of #<Object> which has only a getter
- Implementing API Endpoint Throttling Tied to User Sessions
- Local API endpoint queue settings doesn't work
- Global config.timeouts.request setting doesn't applied
- Configuration server.worker.timeout doesn't limit task execution time HOT 1
- Not consistent response on exceeded global timeout of API endpoint and webhook execution HOT 1
- Impress doesn't restart worker if it crush on "JS heap out of memory"
- sends a static file by URL with multiple slashes
- Issue with application startup after updating node version to 20.12.0 HOT 2
- Process ignores signals and does not stop HOT 2
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 impress.