Skip to content

MICRO SERVICES

bhavyadesai edited this page Jul 1, 2019 · 22 revisions

User-Service(Uses Mysql) + JWT

Fields it contains

  • Name
  • Mobile number
  • Email-Id
  • Password

Booking-Service(uses Mongo & KAFKA )

Fields it contain are as follows:

  • Warehouse-ID
  • Mail-Id(of User)
  • Mail-Id(of storage-owner)
  • Partition-Id
  • Start-Month
  • End-Date Month
  • Mobile(user)
  • User(name)

User-profile Service(Using mongo)

Mail-id(using this we can fetch information)

Listed Storage Units

  1. Location
  2. name
  3. Occupied partitions
  4. total partitions
  5. ID

Booked Storage Units

  1. Id
  2. Mail-Id(owner)
  3. Name
  4. Location
  5. Sq.ft
  6. start_date
  7. end-date

Warehouse-Service(uses Mongo-DB)


{
  name:
  image_url: 
  owner_mailid:,
  id: ,
  time_stamp:,
  
  address: {
  	
  	    street:,
           plotnumber: ,
           city:,
           state: ,
           pincode:
  	},
    "partitions":[
      {
          id: ,
          type: ,
          size:,
          cost: ,
          tenant: {
              name: 
              emailId: 
              mobileNumber: 
              startDate: 
              lastDate:
          }
      }],
  occupied_partitions:,
  total_sqft:
}

Listed Storage Unit (Owner)

{
  
   emailId: "",
   listed storage unit: [
       {   name: "",
           id: "",
           location: "",
           occupied_partition: "",
           total_partition: "",

  } ]

Booked Storage Unit (Client)

{
  
   emailId: "",
   booked storage unit: [
       {   name: "",
           id: "",
           location: "",
           sqft: "",
           start_date: "",
           end_date: ""

  } ]