LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 04-28-2021, 03:37 AM   #1
n00b_noob
Member
 
Registered: Sep 2020
Posts: 436

Rep: Reputation: Disabled
Post Some questions about the microservice.


Hello,
According to the Red Hat and Google:
Quote:
Linux containers give your microservice-based apps an ideal application deployment unit and self-contained execution environment. With microservices in containers, it's easier to take advantage of hardware and easily orchestrate services, including storage, networking, and security.
And:
Quote:
Microservice architecture – a variant of the service-oriented architecture structural style – arranges an application as a collection of loosely coupled services. In a microservices architecture, services are fine-grained and the protocols are lightweight.
My questions are:

1- Why some administrators prefer microservices?

2- Microservices are applications that running in a container? For example, an Apache Web Server that running inside a container like Docker.

3- Is Unikernel something like the microservice?


Thank you.
 
Old 04-28-2021, 09:01 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by n00b_noob View Post
1- Why some administrators prefer microservices?
Not necessarily anything to do with administrations, sometimes admins just implement what architects design. However, key points would include:
  • Allow segregation of services without the overhead of a full O/S install for each service.
  • Allows better resource utilization by allowing multiple segregated services to run on a single "host"
  • Containers for a given containerization platform are (generally) host agnostic
Quote:
Originally Posted by n00b_noob View Post
2- Microservices are applications that running in a container? For example, an Apache Web Server that running inside a container like Docker.
Essentially yes
 
2 members found this post helpful.
Old 04-28-2021, 10:20 AM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by n00b_noob View Post
1- Why some administrators prefer microservices?
I don't know if admins prefer them, but in my opinion, they exist mostly for scalability and elasticity.
Quote:
2- Microservices are applications that running in a container? For example, an Apache Web Server that running inside a container like Docker.
Probably not a requirement, but something like Kubernetes makes them easy to manage and, again, scale up and down.

Last edited by berndbausch; 04-28-2021 at 10:21 AM.
 
Old 04-28-2021, 10:25 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,864

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
Quote:
Originally Posted by n00b_noob View Post
3- Is Unikernel something like the microservice?
No. See for example wiki: https://en.wikipedia.org/wiki/Unikernel

Unikernels lend themselves to creating systems that follow the service-oriented or microservices software architectures.
 
Old 05-01-2021, 11:18 AM   #5
n00b_noob
Member
 
Registered: Sep 2020
Posts: 436

Original Poster
Rep: Reputation: Disabled
Thank you.
I have other questions:

1- If I install an Apache Web Server in the Docker, then I created a Microservice? If no, can anyone show me a tutorial about it?

2- In Microservice design, each Docker container just has to run one application? For example, a website need a database and for its database I need another Docker container that running MySQL?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: 5 microservice testing strategies for startups LXer Syndicated Linux News 0 06-13-2018 10:05 PM
LXer: 5 guiding principles you should know before you design a microservice LXer Syndicated Linux News 0 04-21-2018 10:32 PM
LXer: How Twitter Avoids the Microservice Version of "Works on My Machine"? LXer Syndicated Linux News 0 08-17-2016 01:40 PM
LXer: A Redis-based microservice in bash for automating git clone and npm install LXer Syndicated Linux News 0 04-03-2016 03:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 02:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration