java_server's Issues
Add a Json Parser
Need to
- Parse text file into json
- Parse string message into json
Content Server Routine
- Read server URLs like GET server.
- Read the location of a file in the local file system.
- Assemble to JSON:
- No ID means error
- Receives response from the Agg Server and compares results
Aggregation Server implementation
Add Request handle thread
- Handle GET request - ID exists
- Handle GET request - empty
- Handle GET request - ID does not exist
AggregationServer handles ContentServer
- 1st PUT Message is 201 CREATED
- Subsequent messages is 200 with data bodies
- PUT message items is stored in a map
Add GETClient Retry and Timeout
- Client to wait k amount seconds before resending message. Implements using exponential backoff
- Client to retry for a maximum of m times
Add Lamport Clock tests
Use bashscripts to test
- One Client
- Multiple Clients
Single Thread Socket Server and Client
Client can connect to server single threaded design
Design a simple ContentServer
- Send data to Aggregation Server
- Content is visible to GETClient
Make an HTTP format Class
Generate HTTP Request using builder structure
Parse HTTP Request received from String Message
Generate HTTP Response using builder pattern
Parse HTTP Response from String Message
Write tests for both cases
Add HeartBeat/LeaderDelegation Algorithm
Multi-threaded socket server and client
Add/Test Backup Runnable
Starting server
- Check if Backup file is present. If it is, restore from backup.
When running
- Save backup to local every x amounts of seconds.
- Run as background task.
Aggregation File System design
At the very least:
- Map<String, String> where key is the content server ID, and value is the content
- Map<String, String> where key is the station ID and value is the weather data content
- List containing the requests
Add Lamport Clock
Test Retry and Timeout
Implement a Java communication channel that allows for
- Message delay
- Message drop
- Message arrives out of order
Json Handle Same ID
Update based on datetime latest
Add documentations for all methods written
Add tests on Github Action
- Write Github Action workflow
- Write compilation and testing make targets
- Add README file
Add test for composite data
When each text file contain data from other regions/same region but different timestamps
Add GitHub Code Coverage/Badge
Add Server and Client Logging
Allows interoperability
Request HTTP Request parser
GET Server Basic Routine
- Parse server info (servername, port) from URL:
http://servername.domain.domain:portnumber
http://servername:portnumber
servername:portnumber
- Get station ID:
- Request all information if no station ID is provided
- Create GET message
- Receives response and displays to stdout the Body of response.
Implements Task Queue
- AggServer spawns a connection.
- Connection read message and allocate Timestamp.
- Connection decides whethr the message can be handled locally - i.e. empty GET or must be sent to message queue
- If cannot be handled locally, send the task to message queue
Add test for cleaning up data after 30s or if too stale
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.