erikras / erikras/react-redux-universal-hot-example

Is there a reason API calls on the server use REST instead of being directly mapped to functions?

Open
#1,017 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.1k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

The title pretty much says it all. When server-rendering happens, internally the API calls are re-routed to another port and handled as regular HTTP requests by the API server. Just wondering if it's possible to skip the API server completely, and optimize by mapping API requests directly to files/functions?

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests. Start by tracing the server-rendering path and how API calls are routed to the API server over another port; compare that flow with the corresponding server-side functions. Done means determining whether direct mapping is feasible and documenting or implementing a clear decision.

Written by the indexing model from the issue text.

Assessment

Tech stack
express, javascript, react, redux, webpack
Domain
api, backend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.