- why
- no much traffic
- database/application-server/fron-end all deployed in one box
- low budget
- easy to maintain
- if this is a commercial software system very bad
- single point of failure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server: | |
| port: 9000 | |
| dgs: | |
| graphql: | |
| schema-locations: | |
| - "file:///D:/IdeaProjects/Temp/schema.graphqls" | |
| spring: | |
| application: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.time.*; | |
| import java.time.format.*; | |
| import java.util.*; | |
| public class BookingAlgorithm { | |
| public static void main(String[] args) { | |
| // Example inputs | |
| LocalDateTime startTime = LocalDateTime.of(2023, 3, 22, 9, 0); | |
| LocalDateTime endTime = LocalDateTime.of(2023, 3, 22, 17, 0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ARG ARTIFACT_NAME=application.jar | |
| ARG BUILD_DIR=/usr/app | |
| # Use an appropriate base image | |
| FROM azul/zulu-openjdk-alpine:17.0.8.1-17.44.53 AS build | |
| ARG ARTIFACT_NAME | |
| ARG BUILD_DIR | |
| # Set working directory | |
| WORKDIR $BUILD_DIR |
OlderNewer