Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
EC2 Default User committed Aug 1, 2017
2 parents 707db15 + d6eadab commit 44efda5
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
# README
# Url Lookup Service

This README would normally document whatever steps are necessary to get the
application up and running.
Url Lookup Service provides web site secure level for requested url. A client wants to know whether a certain web site contains a malware or abuse such as adult, games, fraud, etc. How to work is that a client passes full uri then this url lookup service returns the safe level in JSON.

Things you may want to cover:
## Considerations
* The size of the URL list could grow infinitely, how you might scale this beyond the memory capacity of the system.
* The number of requests may exceed the capacity of this system, how you might solve that.
* What strategies you might use to update the service with new URLs. Updates may be as much as 5 thousand URLs a day with updates arriving every 10 minutes.

* Ruby version

* System dependencies
## Questions & Answers
- Is local memcache applicable?
- Pros: faster,
- Cons: capacity (max, maintenance issue
- Considerations: We could use both rails memcached and Redis if response time matters
- Several databases are different clusters or replica?
- Database stores urls which contain malware or both malware and clean urls
- I assume that url updater may call UrlLookupService for add and delete url information such as malware to normal or normal to malware. RESTful API DELETE method remove the url data from database and POST method add a new malware url into database.

* Configuration

* Database creation

* Database initialization

* How to run the test suite
## Url Information Lookup
https://github.com/ukmjkim/url_lookup_service/blob/master/docs/UrlLookupService_GET_SequenceDiagram.png

* Services (job queues, cache servers, search engines, etc.)

* Deployment instructions
## Unsafe Url Information Creation
https://github.com/ukmjkim/url_lookup_service/blob/master/docs/UrlLookupService_POST_SequenceDiagram.png

## Unsafe Url Information Deletion
https://github.com/ukmjkim/url_lookup_service/blob/master/docs/UrlLookupService_DELETE_SequenceDiagram.png

* ...
Binary file added docs/UrlLookupService_DELETE_SequenceDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/UrlLookupService_GET_SequenceDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/UrlLookupService_POST_SequenceDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 44efda5

Please sign in to comment.