简体   繁体   中英

How to deploy in Spark Java

I prepared an app and I want to deploy it on a Spark Java backend (the app is a React frontend). I searched online and I only find how to build the two things separately but I can't find how to bind them: how can I do it? (Please be patient, I'm new to Spark).

I prepared an app and I want to deploy it on a Spark Java backend (the app is a React frontend). I searched online and I only find how to build the two things separately but I can't find how to bind them: how can I do it? (Please be patient, I'm new to Spark).

Looks like Java Spark is compact web server. So the CDN on the React app still applies, you just need to link your React app to your Java Spark backend afterwards.


Old answer:

A React app has nothing to do with Spark. Spark is a unified analytics engine for large-scale data processing.

If you want to deploy your React app in a scalable fashion, use a CDN, for example AWS S3 + Cloudfront, like in this article.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM